-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-cargo-targetsArea: selection and definition of targets (lib, bins, examples, tests, benches)Area: selection and definition of targets (lib, bins, examples, tests, benches)C-bugCategory: bugCategory: bugCommand-clippyCommand-fixS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Description
Problem
I ran cargo clippy and cargo clippy --fix --allow-dirty in the same project but got different reports.
cargo clippy
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s
cargo clippy --fix --allow-dirty
Checking cargo-information v0.4.2 (/Volumes/t7/code/cargo-information)
Fixed tests/testsuite/cargo_information/git_dependency/mod.rs (1 fix)
warning: use of a disallowed/placeholder name `baz`
--> tests/testsuite/cargo_information/git_dependency/mod.rs:9:9
|
9 | let baz = git::new("baz", |project| {
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names
= note: `#[warn(clippy::disallowed_names)]` on by default
warning: use of a disallowed/placeholder name `foo`
--> tests/testsuite/cargo_information/git_dependency/mod.rs:15:9
|
15 | let foo = project()
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names
warning: `cargo-information` (test "testsuite") generated 2 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.78s
Steps
- Clone https://github.com/hi-rustin/cargo-information
- Rustup:
rustup toolchain install nightly-2024-02-21 cargo clippyand check the resultcargo clippy --fix --allow-dirtyand check the result
Possible Solution(s)
None
Notes
I am willing to investigate and fix this issue.
Version
Cargo:
➜ workspace git:(draft/mystifying-neco) ✗ cargo --version
cargo 1.78.0-nightly (7b7af3077 2024-02-17)Toolchain:
active toolchain
----------------
nightly-2024-02-21-x86_64-unknown-linux-gnu (default)
rustc 1.78.0-nightly (bb594538f 2024-02-20)Clippy:
➜ workspace git:(draft/mystifying-neco) ✗ cargo clippy --version
clippy 0.1.78 (bb59453 2024-02-20)Metadata
Metadata
Assignees
Labels
A-cargo-targetsArea: selection and definition of targets (lib, bins, examples, tests, benches)Area: selection and definition of targets (lib, bins, examples, tests, benches)C-bugCategory: bugCategory: bugCommand-clippyCommand-fixS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.