mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
408 B
Text
11 lines
408 B
Text
error: bit mask could be simplified with a call to `trailing_zeros`
|
|
--> $DIR/verbose_bit_mask.rs:5:13
|
|
|
|
|
LL | let _ = v & 0b111111 == 0;
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `v.trailing_zeros() >= 6`
|
|
|
|
|
= note: `-D clippy::verbose-bit-mask` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::verbose_bit_mask)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|