38880 remove unnecessary self.table.size check
This commit is contained in:
@@ -1290,10 +1290,6 @@ impl<K, V, S> HashMap<K, V, S>
|
|||||||
where K: Borrow<Q>,
|
where K: Borrow<Q>,
|
||||||
Q: Hash + Eq
|
Q: Hash + Eq
|
||||||
{
|
{
|
||||||
if self.table.size() == 0 {
|
|
||||||
return None;
|
|
||||||
}
|
|
||||||
|
|
||||||
self.search_mut(k)
|
self.search_mut(k)
|
||||||
.map(|bucket| {
|
.map(|bucket| {
|
||||||
let (k, v, _) = pop_internal(bucket);
|
let (k, v, _) = pop_internal(bucket);
|
||||||
|
|||||||
Reference in New Issue
Block a user