diff options
Diffstat (limited to '')
-rw-r--r-- | dhall_core/src/label.rs | 4 |
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() } } |