summaryrefslogtreecommitdiff
path: root/dhall_generator/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dhall_generator/src/lib.rs')
-rw-r--r--dhall_generator/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhall_generator/src/lib.rs b/dhall_generator/src/lib.rs
index 0d84053..1d51f9e 100644
--- a/dhall_generator/src/lib.rs
+++ b/dhall_generator/src/lib.rs
@@ -59,10 +59,10 @@ fn dhall_to_tokenstream(
let b = dhall_to_tokenstream_bx(b, ctx);
quote! { BinOp(#o, #a, #b) }
}
- OptionalLit(t, es) => {
+ OptionalLit(t, e) => {
let t = option_to_tokenstream(t, ctx);
- let es = vec_to_tokenstream(es, ctx);
- quote! { OptionalLit(#t, #es) }
+ let e = option_to_tokenstream(e, ctx);
+ quote! { OptionalLit(#t, #e) }
}
ListLit(t, es) => {
let t = option_to_tokenstream(t, ctx);