mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
38880 remove unnecessary self.table.size check
This commit is contained in:
@@ -1290,10 +1290,6 @@ pub fn remove_entry<Q: ?Sized>(&mut self, k: &Q) -> Option<(K, V)>
|
||||
where K: Borrow<Q>,
|
||||
Q: Hash + Eq
|
||||
{
|
||||
if self.table.size() == 0 {
|
||||
return None;
|
||||
}
|
||||
|
||||
self.search_mut(k)
|
||||
.map(|bucket| {
|
||||
let (k, v, _) = pop_internal(bucket);
|
||||
|
||||
Reference in New Issue
Block a user