From 5692bf2c8a7acfb90a5d03d0bd360c105ba2a72b Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 16 Mar 2019 00:18:50 +0100 Subject: Store an Option in OptionalLit instead of a vec Closes #21 --- dhall_generator/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dhall_generator') 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); -- cgit v1.2.3