From 4bed7b11e227a3151a2ff9e74f9662c126aad5a4 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Fri, 19 Apr 2019 14:42:36 +0200 Subject: Make App() only store one argument --- dhall_generator/src/quote.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'dhall_generator/src/quote.rs') diff --git a/dhall_generator/src/quote.rs b/dhall_generator/src/quote.rs index 400c12c..38910a8 100644 --- a/dhall_generator/src/quote.rs +++ b/dhall_generator/src/quote.rs @@ -43,7 +43,6 @@ where quote! { dhall_core::ExprF::Lam(#x, #t, #b) } } App(f, a) => { - let a = quote_vec(a); quote! { dhall_core::ExprF::App(#f, #a) } } Annot(x, t) => { -- cgit v1.2.3 From 83bc67d4572fe7961842f915d5559ee489e13dfd Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 20 Apr 2019 23:12:25 +0200 Subject: An empty optional value is purely semantic --- dhall_generator/src/quote.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'dhall_generator/src/quote.rs') diff --git a/dhall_generator/src/quote.rs b/dhall_generator/src/quote.rs index 38910a8..c588eda 100644 --- a/dhall_generator/src/quote.rs +++ b/dhall_generator/src/quote.rs @@ -66,11 +66,8 @@ where BoolLit(b) => { quote! { dhall_core::ExprF::BoolLit(#b) } } - EmptyOptionalLit(x) => { - quote! { dhall_core::ExprF::EmptyOptionalLit(#x) } - } - NEOptionalLit(x) => { - quote! { dhall_core::ExprF::NEOptionalLit(#x) } + SomeLit(x) => { + quote! { dhall_core::ExprF::SomeLit(#x) } } EmptyListLit(t) => { quote! { dhall_core::ExprF::EmptyListLit(#t) } -- cgit v1.2.3