Skip to content

Commit

Permalink
Use || instead of &&
Browse files Browse the repository at this point in the history
  • Loading branch information
JustForFun88 committed Feb 16, 2023
1 parent 7f88093 commit bc0a170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/set.rs
Expand Up @@ -1002,7 +1002,7 @@ where
RawEntryMut::Vacant(entry) => {
let insert_value = f(value);
let insert_value_hash = make_insert_hash::<T, S>(entry.hasher(), &insert_value);
if !(hash == insert_value_hash && value.equivalent(&insert_value)) {
if hash != insert_value_hash || !value.equivalent(&insert_value) {
assert_failed();
}
entry
Expand Down

0 comments on commit bc0a170

Please sign in to comment.