aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/floats.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-01-25 18:06:33 -0600
committerGitHub <noreply@github.com>2018-01-25 18:06:33 -0600
commitc9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b (patch)
treeb6b5d9e1539d294fdbba5fec5a545d8aa6552443 /components/layout/floats.rs
parentfc3b1789318afc8f10e160d40b592234fbdb5cf4 (diff)
parent31631cdc47618a1591b6520eab8c82b28ac13bee (diff)
downloadservo-c9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b.tar.gz
servo-c9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b.zip
Auto merge of #19868 - CYBAI:specific-assertion, r=emilio
Use specific assertions Similar to #19865 r? jdm Note: Should I squash all the commits into one commit? --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it should not break anything <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19868) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout/floats.rs')
-rw-r--r--components/layout/floats.rs4
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 {