You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New library crate created with cargo new fails clippy #9759
Newly created crates with cargo new fail clippy with default settings on stable.
New crates created from a template should not generate warnings.
Steps
$ cargo new --lib clippy-test Created library `clippy-test` package
$ cd clippy-test//Users/lopopolo/dev/artichoke/clippy-test
$ cargo clippy --all-features --all-targets Checking clippy-test v0.1.0 (/Users/lopopolo/dev/artichoke/clippy-test)error: identical args used in this `assert_eq!` macro call --> src/lib.rs:5:20 |5 | assert_eq!(2 + 2, 4); | ^^^^^^^^ | = note: `#[deny(clippy::eq_op)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_operror: aborting due to previous errorerror: could not compile `clippy-test`To learn more, run the command again with --verbose.
Possible Solution(s)
Update the built in new crate template or suppress the clippy warning.
Activity
0xPoe commentedon Aug 17, 2021
@rustbot claim
Auto merge of #9796 - hi-rustin:rustin-patch-clippy, r=ehuss