diff options
Diffstat (limited to 'components/layout/floats.rs')
-rw-r--r-- | components/layout/floats.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/floats.rs b/components/layout/floats.rs index 4c4d6f21f36..58fe1bc59b8 100644 --- a/components/layout/floats.rs +++ b/components/layout/floats.rs @@ -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 { |