Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use clippy twice does not produce any warning #2762

Closed
CyrilCalmels opened this issue May 15, 2018 · 1 comment
Closed

Use clippy twice does not produce any warning #2762

CyrilCalmels opened this issue May 15, 2018 · 1 comment

Comments

@CyrilCalmels
Copy link

CyrilCalmels commented May 15, 2018

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.

@phansch
Copy link
Member

phansch commented May 15, 2018

Thanks for the report! This is currently tracked here: #2604, so I'm going to close this as a duplicate.

You should be able to run touch main.rs; cargo clippy as a workaround.

@phansch phansch closed this as completed May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants