diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2018-01-26 01:55:24 +0800 |
---|---|---|
committer | CYBAI <cyb.ai.815@gmail.com> | 2018-01-26 01:55:24 +0800 |
commit | baccc4eda2c90ca838816a0317795c1a43c7b903 (patch) | |
tree | e2c7f8d1b9a4014ef8263bb30b8a94f4e96bca6a | |
parent | 73bc7a81e9aad730a0956490e770b0f7569cdac9 (diff) | |
download | servo-baccc4eda2c90ca838816a0317795c1a43c7b903.tar.gz servo-baccc4eda2c90ca838816a0317795c1a43c7b903.zip |
Use specific negative assertion for layout floats
-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 { |