mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
Auto merge of #8216 - pmnoxx:piotr-fix-clippy-warnings, r=xFrednet
Fix `clippy::use-self`` warning in ` src/main.rs` `ClippyCmd` warnings gets generated due to addition of `clippy::use-self`. This PR fixes that. ``` warning: unnecessary structure name repetition --> src/main.rs:99:9 | 99 | ClippyCmd { | ^^^^^^^^^ help: use the applicable keyword: `Self` | = note: `-W clippy::use-self` implied by `-W clippy::nursery` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#use_self ``` --- changelog: none
This commit is contained in:
commit
3ea77847fe
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ impl ClippyCmd {
|
|||
clippy_args.push("--no-deps".into());
|
||||
}
|
||||
|
||||
ClippyCmd {
|
||||
Self {
|
||||
cargo_subcommand,
|
||||
args,
|
||||
clippy_args,
|
||||
|
|
Loading…
Reference in a new issue