Skip to content

Commit e9e1ab1

Browse files
authored
Rollup merge of #69504 - MichaelMcDonnell:hash_assert_ne, r=LukasKalbertodt
Use assert_ne in hash tests The hash tests were written before the assert_ne macro was added to the standard library. The assert_ne macro provides better output in case of a failure.
2 parents 6b2983a + 87327eb commit e9e1ab1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/libcore/tests/hash/sip.rs

-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ fn test_hash_no_concat_alias() {
298298
let t = ("aabb", "");
299299
let u = ("a", "abb");
300300

301-
assert!(s != t && t != u);
302301
assert_ne!(s, t);
303302
assert_ne!(t, u);
304303
assert_ne!(hash(&s), hash(&t));

0 commit comments

Comments
 (0)