Fix doc for verbose_bit_mask
This commit is contained in:
parent
1aa236d59b
commit
0dddf6e0e8
@ -242,6 +242,13 @@ declare_clippy_lint! {
|
||||
/// # let x = 1;
|
||||
/// if (x | 1 > 3) { }
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
///
|
||||
/// ```no_run
|
||||
/// # let x = 1;
|
||||
/// if (x >= 2) { }
|
||||
/// ```
|
||||
#[clippy::version = "pre 1.29.0"]
|
||||
pub INEFFECTIVE_BIT_MASK,
|
||||
correctness,
|
||||
@ -265,6 +272,13 @@ declare_clippy_lint! {
|
||||
/// # let x = 1;
|
||||
/// if x & 0b1111 == 0 { }
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
///
|
||||
/// ```no_run
|
||||
/// # let x: i32 = 1;
|
||||
/// if x.trailing_zeros() > 4 { }
|
||||
/// ```
|
||||
#[clippy::version = "pre 1.29.0"]
|
||||
pub VERBOSE_BIT_MASK,
|
||||
pedantic,
|
||||
|
Loading…
x
Reference in New Issue
Block a user