forked from mirror/async-std
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) {
|
||||
let mut inner = self.lock();
|
||||
|
||||
if let Some(_) = inner.entries.remove(key) {
|
||||
if inner.entries.remove(key).is_some() {
|
||||
inner.notifiable -= 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue