From 8c34c3bbc2fc520cce78fd445bdbc3192ce91abf Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 14 Mar 2019 00:58:46 +0100 Subject: Implement binary decoding Closes #2 Closes #23 --- dhall_core/src/core.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dhall_core') diff --git a/dhall_core/src/core.rs b/dhall_core/src/core.rs index 9f4beb3..b3ba142 100644 --- a/dhall_core/src/core.rs +++ b/dhall_core/src/core.rs @@ -80,9 +80,9 @@ impl From for Label { } } -impl From<&'static str> for Label { - fn from(s: &'static str) -> Self { - Label(s.into()) +impl<'a> From<&'a str> for Label { + fn from(s: &'a str) -> Self { + Label(Rc::from(s)) } } -- cgit v1.2.3