Fix a clippy warning

poc-serde-support
Stjepan Glavina 5 years ago
parent e9edadffc7
commit 5874392397

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

Loading…
Cancel
Save