2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-31 01:35:33 +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) {
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;
}
}