summaryrefslogtreecommitdiff
path: root/dhall_generator
diff options
context:
space:
mode:
authorNadrieril2019-03-16 00:18:50 +0100
committerNadrieril2019-03-16 00:18:50 +0100
commit5692bf2c8a7acfb90a5d03d0bd360c105ba2a72b (patch)
treeb86ac0beeb06cb9984f1d6a2ba547d391674533e /dhall_generator
parent1522469dc0b68c63dbbc81faab057c3d48402657 (diff)
Store an Option in OptionalLit instead of a vec
Closes #21
Diffstat (limited to 'dhall_generator')
-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);