From 53adc58f633706c7f465501d579ac78e2ee4ca79 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 28 Oct 2020 19:21:45 +0800 Subject: [PATCH] Fix no_closure build. --- src/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 84a8e6d9..fe9f9119 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -3650,8 +3650,8 @@ fn make_curry_from_externals(fn_expr: Expr, externals: StaticVec, pos: Po }); #[cfg(feature = "no_closure")] - externals.into_iter().for_each(|(var_name, pos)| { - args.push(Expr::Variable(Box::new(((var_name, pos), None, 0, None)))); + externals.into_iter().for_each(|x| { + args.push(Expr::Variable(Box::new((x.clone(), None, 0, None)))); }); let hash = calc_fn_hash(empty(), KEYWORD_FN_PTR_CURRY, num_externals + 1, empty()); @@ -3750,7 +3750,7 @@ fn parse_anon_fn( // External variables may need to be processed in a consistent order, // so extract them into a list. - let externals: StaticVec<_> = { + let externals: StaticVec = { #[cfg(not(feature = "no_closure"))] { state