summaryrefslogtreecommitdiff
path: root/dhall_core
diff options
context:
space:
mode:
authorNadrieril2019-03-14 00:58:46 +0100
committerNadrieril2019-03-14 00:58:46 +0100
commit8c34c3bbc2fc520cce78fd445bdbc3192ce91abf (patch)
tree6082788efb015482855174a17bdda9144fcc9208 /dhall_core
parent17042b866ad7760e782e15937ecd9458af721576 (diff)
Implement binary decoding
Closes #2 Closes #23
Diffstat (limited to 'dhall_core')
-rw-r--r--dhall_core/src/core.rs6
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))
}
}