We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
||
&&
1 parent 7f88093 commit bc0a170Copy full SHA for bc0a170
src/set.rs
@@ -1002,7 +1002,7 @@ where
1002
RawEntryMut::Vacant(entry) => {
1003
let insert_value = f(value);
1004
let insert_value_hash = make_insert_hash::<T, S>(entry.hasher(), &insert_value);
1005
- if !(hash == insert_value_hash && value.equivalent(&insert_value)) {
+ if hash != insert_value_hash || !value.equivalent(&insert_value) {
1006
assert_failed();
1007
}
1008
entry
0 commit comments