bucket: revert pattern matching

This commit is contained in:
folex 2020-03-20 20:00:05 +03:00
parent fe0a141e0e
commit 6ba164e6d9

View File

@ -224,7 +224,8 @@ where
None
};
if self.insert(node.clone(), status) == InsertResult::Inserted {
if let InsertResult::Inserted = self.insert(node.clone(), status) {
AppliedPending { inserted: node, evicted }
} else {
unreachable!("Bucket is not full, we just evicted a node.")