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.
This commit is contained in:
Dylan DPC 2020-03-01 17:23:26 +01:00 committed by GitHub
commit e9e1ab1058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,7 +298,6 @@ fn test_hash_no_concat_alias() {
let t = ("aabb", "");
let u = ("a", "abb");
assert!(s != t && t != u);
assert_ne!(s, t);
assert_ne!(t, u);
assert_ne!(hash(&s), hash(&t));