2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-08 17:36:43 +00:00

Fix a clippy warning

This commit is contained in:
Stjepan Glavina 2019-11-04 18:48:49 +01:00
parent e9edadffc7
commit 5874392397

View file

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