Skip to content

Commit bc0a170

Browse files
authored
Use || instead of &&
1 parent 7f88093 commit bc0a170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ where
10021002
RawEntryMut::Vacant(entry) => {
10031003
let insert_value = f(value);
10041004
let insert_value_hash = make_insert_hash::<T, S>(entry.hasher(), &insert_value);
1005-
if !(hash == insert_value_hash && value.equivalent(&insert_value)) {
1005+
if hash != insert_value_hash || !value.equivalent(&insert_value) {
10061006
assert_failed();
10071007
}
10081008
entry

0 commit comments

Comments
 (0)