From bc0a170f97b9971f975a3d7608cf107aa8983931 Mon Sep 17 00:00:00 2001 From: JustForFun88 <100504524+JustForFun88@users.noreply.github.com> Date: Thu, 16 Feb 2023 19:07:53 +0500 Subject: [PATCH] Use `||` instead of `&&` --- src/set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/set.rs b/src/set.rs index 69bc9b9066..6a500dc551 100644 --- a/src/set.rs +++ b/src/set.rs @@ -1002,7 +1002,7 @@ where RawEntryMut::Vacant(entry) => { let insert_value = f(value); let insert_value_hash = make_insert_hash::(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