From baccc4eda2c90ca838816a0317795c1a43c7b903 Mon Sep 17 00:00:00 2001 From: CYBAI Date: Fri, 26 Jan 2018 01:55:24 +0800 Subject: [PATCH] Use specific negative assertion for layout floats --- components/layout/floats.rs | 4 ++-- 1 file 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 {