summaryrefslogtreecommitdiff
path: root/dhall_core/src/label.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dhall_core/src/label.rs')
-rw-r--r--dhall_core/src/label.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall_core/src/label.rs b/dhall_core/src/label.rs
index 8b371af..9dc2816 100644
--- a/dhall_core/src/label.rs
+++ b/dhall_core/src/label.rs
@@ -18,8 +18,8 @@ impl<'a> From<&'a str> for Label {
}
}
-impl From<Label> for String {
- fn from(x: Label) -> String {
+impl From<&Label> for String {
+ fn from(x: &Label) -> String {
x.0.as_ref().to_owned()
}
}