aboutsummaryrefslogtreecommitdiffstats
path: root/components/hashglobe
diff options
context:
space:
mode:
authorjanczer <menshikov.ivn@gmail.com>2018-02-07 09:18:59 +0100
committerjanczer <menshikov.ivn@gmail.com>2018-02-07 09:21:24 +0100
commit661d234c3c8662423ee12e248c30e7d0e1dae78a (patch)
tree1cb6afe425e354b848ae96d0cc4b64847b7b6361 /components/hashglobe
parent2cf0077be130cec4499d8e3df6e09c340022b67f (diff)
downloadservo-661d234c3c8662423ee12e248c30e7d0e1dae78a.tar.gz
servo-661d234c3c8662423ee12e248c30e7d0e1dae78a.zip
Change debug assertions to specific ones
Diffstat (limited to 'components/hashglobe')
-rw-r--r--components/hashglobe/src/hash_map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/hashglobe/src/hash_map.rs b/components/hashglobe/src/hash_map.rs
index 7622c284f99..27077526b3a 100644
--- a/components/hashglobe/src/hash_map.rs
+++ b/components/hashglobe/src/hash_map.rs
@@ -499,7 +499,7 @@ fn robin_hood<'a, K: 'a, V: 'a>(bucket: FullBucketMut<'a, K, V>,
loop {
displacement += 1;
let probe = bucket.next();
- debug_assert!(probe.index() != idx_end);
+ debug_assert_ne!(probe.index(), idx_end);
let full_bucket = match probe.peek() {
Empty(bucket) => {
@@ -578,7 +578,7 @@ impl<K, V, S> HashMap<K, V, S>
Full(b) => b.into_bucket(),
};
buckets.next();
- debug_assert!(buckets.index() != start_index);
+ debug_assert_ne!(buckets.index(), start_index);
}
}
}