Skip to content

Commit

Permalink
style(maitake): fix clippy lints (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Jul 28, 2022
1 parent a1831c4 commit a335fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion maitake/src/wait/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ mod tests {
assert_eq!(tick.completed, 0);
assert_eq!(COMPLETED.load(Ordering::Relaxed), 0);

assert_eq!(wait.wake(), true);
assert!(wait.wake());
let tick = sched.tick();
assert_eq!(tick.completed, 1);
assert_eq!(COMPLETED.load(Ordering::Relaxed), 1);
Expand Down
2 changes: 1 addition & 1 deletion maitake/src/wait/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ impl<K: PartialEq, V> Waiter<K, V> {
// this check will never trigger, if we are already waiting, we should
// still be waiting.
let mut cursor = waiters.cursor_front_mut();
if cursor.find(|n| &n.key == this.key).is_some() {
if cursor.any(|n| &n.key == this.key) {
return duplicate();
}

Expand Down

0 comments on commit a335fc6

Please sign in to comment.