diff options
author | Nadrieril | 2019-03-14 00:58:46 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-14 00:58:46 +0100 |
commit | 8c34c3bbc2fc520cce78fd445bdbc3192ce91abf (patch) | |
tree | 6082788efb015482855174a17bdda9144fcc9208 /dhall_core | |
parent | 17042b866ad7760e782e15937ecd9458af721576 (diff) |
Implement binary decoding
Closes #2
Closes #23
Diffstat (limited to 'dhall_core')
-rw-r--r-- | dhall_core/src/core.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<String> 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)) } } |