mirror of
https://github.com/async-rs/async-std.git
synced 2025-03-27 03:30:25 +00:00
Fix another clippy warning
This commit is contained in:
parent
5874392397
commit
6d421de992
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue