summaryrefslogtreecommitdiff
path: root/dhall_generator/src/dhall_expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dhall_generator/src/dhall_expr.rs')
-rw-r--r--dhall_generator/src/dhall_expr.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhall_generator/src/dhall_expr.rs b/dhall_generator/src/dhall_expr.rs
index bc9da22..41e558b 100644
--- a/dhall_generator/src/dhall_expr.rs
+++ b/dhall_generator/src/dhall_expr.rs
@@ -109,7 +109,8 @@ fn dhall_to_tokenstream_bx(
// Non-free variable; interpolates as itself
Some(()) => {
let s: String = s.into();
- quote! { dhall_core::bx(dhall_core::Expr::Var(dhall_core::V(#s.into(), #n))) }
+ let var = quote! { dhall_core::V(#s.into(), #n) };
+ bx(quote! { dhall_core::Expr::Var(#var) })
}
// Free variable; interpolates as a rust variable
None => {