Skip to content

Use clippy twice does not produce any warning #2762

@CyrilCalmels

Description

@CyrilCalmels

Hello,
I have the same problem as #2498 even if I use a version where it is supposed to be fixed:

> cargo clean
> cargo clippy -V
0.0.200
> cargo +nightly clippy
    Checking variables v0.1.0 (file:///----)
warning: equality checks against true are unnecessary
 --> src/main.rs:5:6
  |
5 |   if test == true { println!("true") }
  |      ^^^^^^^^^^^^ help: try simplifying it as shown: `test`
  |
  = note: #[warn(bool_comparison)] on by default
  = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.200/index.html#bool_comparison

    Finished dev [unoptimized + debuginfo] target(s) in 0.23s
> cargo +nightly clippy
    Finished dev [unoptimized + debuginfo] target(s) in 0.03s

Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions