summaryrefslogtreecommitdiff
path: root/dhall_core
diff options
context:
space:
mode:
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))
}
}