Skip to content

Commit

Permalink
clippy::needless_borrow
Browse files Browse the repository at this point in the history
warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> src/imp_std.rs:212:22
    |
212 |                 wait(&queue, curr_queue);
    |                      ^^^^^^ help: change this to: `queue`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `#[warn(clippy::needless_borrow)]` on by default
  • Loading branch information
jqnatividad committed May 23, 2023
1 parent 885ab76 commit 307ff0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imp_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ fn initialize_or_wait(queue: &AtomicPtr<Waiter>, mut init: Option<&mut dyn FnMut
return;
}
(INCOMPLETE, None) | (RUNNING, _) => {
wait(&queue, curr_queue);
wait(queue, curr_queue);
curr_queue = queue.load(Ordering::Acquire);
}
_ => debug_assert!(false),
Expand Down

0 comments on commit 307ff0c

Please sign in to comment.