add unused-row assertion

This commit is contained in:
saji 2024-05-05 01:46:01 -05:00
parent d3c498231e
commit e5a1f84bf8

View file

@ -96,6 +96,7 @@ fn map_remaining_olmc(
Ok(x)
}
None => {
assert!(!unused.is_empty(), "should have rows available");
let minsize = unused.iter().map(|x| x.1).min().unwrap();
Err(MappingError::SopTooBig {
name: sop.name.unwrap(),