Use specific assertion for layout multicol

This commit is contained in:
CYBAI 2018-01-25 23:47:25 +08:00
parent da4a4475de
commit bb7964a4bb

View file

@ -159,7 +159,7 @@ impl Flow for MulticolFlow {
});
// Before layout, everything is in a single "column"
assert!(self.block_flow.base.children.len() == 1);
assert_eq!(self.block_flow.base.children.len(), 1);
let mut column = self.block_flow.base.children.pop_front_arc().unwrap();
// Pretend there is no children for this: