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
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.
Notes
Output of cargo version:
cargo 1.54.0 (5ae8d74b3 2021-06-22)
The text was updated successfully, but these errors were encountered:
Problem
Newly created crates with
cargo new
fail clippy with default settings on stable.New crates created from a template should not generate warnings.
Steps
Possible Solution(s)
Update the built in new crate template or suppress the clippy warning.
Notes
Output of
cargo version
:The text was updated successfully, but these errors were encountered: