diff options
Diffstat (limited to '')
-rw-r--r-- | dhall_core/src/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs index a62f861..3f53c49 100644 --- a/dhall_core/src/parser.rs +++ b/dhall_core/src/parser.rs @@ -685,7 +685,7 @@ make_parser! { rule!(identifier<ParsedExpr> as expression; children!( [label(l), natural_literal(idx)] => { - let name = String::from(l.clone()); + let name = String::from(&l); match Builtin::parse(name.as_str()) { Some(b) => bx(Expr::Builtin(b)), None => match name.as_str() { @@ -698,7 +698,7 @@ make_parser! { } }, [label(l)] => { - let name = String::from(l.clone()); + let name = String::from(&l); match Builtin::parse(name.as_str()) { Some(b) => bx(Expr::Builtin(b)), None => match name.as_str() { |