diff options
author | Nadrieril | 2019-03-24 01:06:40 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-24 01:06:40 +0100 |
commit | 7d30b044a2c8c2cef8143b9e0ac763024c50026c (patch) | |
tree | cf6aa5f9af31edf77ac49a27083f53af2b6d2a30 /dhall_core/src/label.rs | |
parent | 062fc44a93a18ee432e51db852290ab5849f4dd9 (diff) |
Refactor printer
Avoids stupid stack overflows when adding variants, gets precedences
right, and updates to latest grammar changes
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() } } |