Compare plain list type in diff.rs.

This commit is contained in:
Tom Alexander
2023-09-29 13:03:01 -04:00
parent a4b1d462c3
commit f820e27b17
3 changed files with 32 additions and 5 deletions

View File

@@ -148,7 +148,7 @@ pub(crate) fn plain_list<'b, 'g, 'r, 's>(
remaining,
PlainList {
source: source.into(),
list_type: PlainListType::Ordered,
list_type: first_item_list_type.expect("Plain lists require at least one element."),
children: children.into_iter().map(|(_start, item)| item).collect(),
},
))