Skip to content

Commit

Permalink
Fix missing variable init in lint example
Browse files Browse the repository at this point in the history
  • Loading branch information
arya-k committed May 17, 2021
1 parent 5ba236f commit 0dcde71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clippy_lints/src/needless_bitwise_bool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ declare_clippy_lint! {
/// **Example:**
///
/// ```rust
/// let (x,y) = (true, false);
/// if x & !y {} // where both x and y are booleans
/// ```
/// Use instead:
/// ```rust
/// let (x,y) = (true, false);
/// if x && !y {}
/// ```
pub NEEDLESS_BITWISE_BOOL,
Expand Down

0 comments on commit 0dcde71

Please sign in to comment.