Allow folding with tables. (#2538)

This commit is contained in:
Andrés N. Robalino
2020-09-12 01:40:52 -05:00
committed by GitHub
parent dcfa135ab9
commit 7528094e12
5 changed files with 60 additions and 15 deletions

View File

@ -385,12 +385,10 @@ impl Value {
value: UntaggedValue::Primitive(p),
..
} => p.is_empty(),
t
@
Value {
value: UntaggedValue::Table(_),
value: UntaggedValue::Table(rows),
..
} => t.table_entries().all(|row| row.is_empty()),
} => rows.is_empty(),
r
@
Value {