Skip to content

Commit

Permalink
Use specific negative assertion for layout floats
Browse files Browse the repository at this point in the history
  • Loading branch information
CYBAI committed Jan 25, 2018
1 parent 73bc7a8 commit baccc4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/layout/floats.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit baccc4e

Please sign in to comment.