Use specific negative assertion for layout floats

This commit is contained in:
CYBAI 2018-01-26 01:55:24 +08:00
parent 73bc7a81e9
commit baccc4eda2

View file

@ -364,8 +364,8 @@ impl Floats {
}
}
Some(rect) => {
assert!(rect.start.b + rect.size.block != float_b,
"Non-terminating float placement");
assert_ne!(rect.start.b + rect.size.block, float_b,
"Non-terminating float placement");
// Place here if there is enough room
if rect.size.inline >= info.size.inline {