Skip to content

Commit e034ddd

Browse files
committed
38880 remove unnecessary self.table.size check
1 parent f3330ce commit e034ddd

File tree

1 file changed

+0
-4
lines changed
  • src/libstd/collections/hash

1 file changed

+0
-4
lines changed

src/libstd/collections/hash/map.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1290,10 +1290,6 @@ impl<K, V, S> HashMap<K, V, S>
12901290
where K: Borrow<Q>,
12911291
Q: Hash + Eq
12921292
{
1293-
if self.table.size() == 0 {
1294-
return None;
1295-
}
1296-
12971293
self.search_mut(k)
12981294
.map(|bucket| {
12991295
let (k, v, _) = pop_internal(bucket);

0 commit comments

Comments
 (0)