summaryrefslogtreecommitdiff
path: root/dhall_generator/src
diff options
context:
space:
mode:
authorNadrieril2019-03-31 19:37:29 +0200
committerNadrieril2019-03-31 19:37:29 +0200
commit737472abf9c0ca2030ab8c2bb0b1d4af41167183 (patch)
treea9477b48c7e029e5726c7faa54934bb429fd0ee6 /dhall_generator/src
parent7374d0524ccd53b256107667b213597c05720d2d (diff)
Remove evil Deref impl
Diffstat (limited to '')
-rw-r--r--dhall_generator/src/dhall_expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall_generator/src/dhall_expr.rs b/dhall_generator/src/dhall_expr.rs
index c4b15e8..2e3adf7 100644
--- a/dhall_generator/src/dhall_expr.rs
+++ b/dhall_generator/src/dhall_expr.rs
@@ -10,7 +10,7 @@ pub fn dhall_expr(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
let expr: SubExpr<X, Import> = parse_expr(&input_str).unwrap();
let no_import =
|_: &Import| -> X { panic!("Don't use import in dhall!()") };
- let expr = rc(expr.map_embed(&no_import));
+ let expr = rc(expr.as_ref().map_embed(&no_import));
let output = dhall_to_tokenstream_bx(&expr, &Context::new());
output.into()
}