Skip to content

Commit

Permalink
Ignore clippy::unit_arg lint in bench
Browse files Browse the repository at this point in the history
```
warning: passing a unit value to a function
  --> crossbeam-skiplist/benches/skiplist.rs:97:13
   |
97 |             black_box(map.remove(&num, guard).unwrap().release(guard));
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
   = note: `#[warn(clippy::unit_arg)]` on by default
help: move the expression in front of the call and replace it with the unit literal `()`
   |
97 ~             map.remove(&num, guard).unwrap().release(guard);
98 ~             black_box(());
   |
```
  • Loading branch information
taiki-e committed Nov 17, 2022
1 parent 7b934b8 commit f76c8b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crossbeam-skiplist/benches/skiplist.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![feature(test)]
#![allow(clippy::unit_arg)]

extern crate test;

Expand Down

0 comments on commit f76c8b3

Please sign in to comment.