about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-01-03 16:54:39 +0000
committerbors <bors@rust-lang.org>2022-01-03 16:54:39 +0000
commit3ea77847fee93e51957e51a4480ef31a04602a7a (patch)
tree7cb8268c5c436de08f374dd425c68e1c4414c65b
parent8419108e965edecb5b1dcc0f3c62bbd7c08d05c2 (diff)
parent19cfcd5c5a604523fd58c844f90f149021b0fb51 (diff)
downloadrust-3ea77847fee93e51957e51a4480ef31a04602a7a.tar.gz
rust-3ea77847fee93e51957e51a4480ef31a04602a7a.zip
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
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 7ebdd947893..240e233420f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -96,7 +96,7 @@ impl ClippyCmd {
             clippy_args.push("--no-deps".into());
         }
 
-        ClippyCmd {
+        Self {
             cargo_subcommand,
             args,
             clippy_args,