Fix another clippy warning

This commit is contained in:
Stjepan Glavina 2019-11-05 10:16:00 +00:00
parent 5874392397
commit 6d421de992

View file

@ -74,7 +74,7 @@ impl WakerSet {
pub fn remove(&self, key: usize) {
let mut inner = self.lock();
if let Some(_) = inner.entries.remove(key) {
if inner.entries.remove(key).is_some() {
inner.notifiable -= 1;
}
}