more func
This commit is contained in:
parent
aad49cb19f
commit
95c74dbd30
@ -517,9 +517,9 @@ impl KeyDirectory {
|
|||||||
let cache = self.cache.borrow();
|
let cache = self.cache.borrow();
|
||||||
cache.keys().cloned().filter(|key| !uniqs.contains(key)).collect()
|
cache.keys().cloned().filter(|key| !uniqs.contains(key)).collect()
|
||||||
};
|
};
|
||||||
for key in removes {
|
if removes.is_empty() { return }
|
||||||
self.cache.borrow_mut().remove(&key);
|
let mut cache = self.cache.borrow_mut();
|
||||||
}
|
for key in removes { cache.remove(&key); }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reports how many keys are currently cached.
|
/// Reports how many keys are currently cached.
|
||||||
|
Loading…
Reference in New Issue
Block a user