fix compile issues

This commit is contained in:
Sébastien Besnier 2020-12-28 21:17:27 +01:00
parent 07d4f8dc15
commit 4e9387cbda
4 changed files with 35 additions and 14 deletions

View file

@ -285,7 +285,9 @@ pub fn canonicalize_expr<'a>(
}
}
ast::Expr::Str(literal) => flatten_str_literal(env, var_store, scope, literal),
ast::Expr::List(loc_elems) => {
ast::Expr::List {
items: loc_elems, ..
} => {
if loc_elems.is_empty() {
(
List {