Fix another clippy warning

pull/452/head
Stjepan Glavina 5 years ago
parent 5874392397
commit 6d421de992

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

Loading…
Cancel
Save