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:
parent
e9edadffc7
commit
5874392397
1 changed files with 2 additions and 3 deletions
|
@ -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…
Reference in a new issue