diff --git a/adana-script/src/parser.rs b/adana-script/src/parser.rs index 3fbdfa4..9129b88 100644 --- a/adana-script/src/parser.rs +++ b/adana-script/src/parser.rs @@ -894,7 +894,7 @@ where tag_no_space("{"), terminated(opt(&parser), tag_no_space("}")), ), - |exprs| if let Some(exprs) = exprs { exprs } else { vec![] }, + |exprs| exprs.unwrap_or_default(), )(s) } }