Skip to content

Commit

Permalink
Auto merge of rust-lang#8216 - pmnoxx:piotr-fix-clippy-warnings, r=xF…
Browse files Browse the repository at this point in the history
…rednet

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
  • Loading branch information
bors committed Jan 3, 2022
2 parents 8419108 + 19cfcd5 commit 3ea7784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl ClippyCmd {
clippy_args.push("--no-deps".into());
}

ClippyCmd {
Self {
cargo_subcommand,
args,
clippy_args,
Expand Down

0 comments on commit 3ea7784

Please sign in to comment.