summaryrefslogtreecommitdiff
path: root/dhall_generator/src
diff options
context:
space:
mode:
authorNadrieril2019-03-08 22:59:18 +0100
committerNadrieril2019-03-08 22:59:18 +0100
commitc6aafe818ca56ec8bc6d3cd27824eba0a2d6b874 (patch)
tree57e4ef2c9d063744f3dfaf9693ad353b146438a4 /dhall_generator/src
parentd3f4a32d1e3d39c8d42306e5ca5ad4bb256edcd8 (diff)
Clean up some of the mess
Diffstat (limited to 'dhall_generator/src')
-rw-r--r--dhall_generator/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall_generator/src/lib.rs b/dhall_generator/src/lib.rs
index 75912d0..8745c76 100644
--- a/dhall_generator/src/lib.rs
+++ b/dhall_generator/src/lib.rs
@@ -32,7 +32,7 @@ fn dhall_to_tokenstream<L: StringLike>(
let t = dhall_to_tokenstream_bx(t, ctx);
let b = dhall_to_tokenstream_bx(b, &ctx.insert(x.clone(), ()));
let x = Literal::string(&x.clone().into());
- quote! { Lam(#x.to_owned().into(), #t, #b) }
+ quote! { Lam(#x.into(), #t, #b) }
}
App(f, a) => {
let f = dhall_to_tokenstream_bx(f, ctx);
@@ -85,7 +85,7 @@ fn dhall_to_tokenstream_bx<L: StringLike>(
// Non-free variable; interpolates as itself
Some(()) => {
let s: String = s.clone().into();
- quote! { bx(Var(V(#s.to_owned().into(), #n))) }
+ quote! { bx(Var(V(#s.into(), #n))) }
}
// Free variable; interpolates as a rust variable
None => {