bucket: cleanup

This commit is contained in:
folex
2020-03-20 19:45:04 +03:00
parent d8b42a5cb1
commit fe0a141e0e

View File

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