mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Rustftmt
This commit is contained in:
parent
351688db78
commit
466cd076a2
2 changed files with 2 additions and 4 deletions
|
@ -253,9 +253,7 @@ mod nesting {
|
|||
|
||||
impl Bar {
|
||||
fn bar() -> Bar {
|
||||
Bar {
|
||||
foo: Foo{},
|
||||
}
|
||||
Bar { foo: Foo {} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ LL | fn bar() -> Bar {
|
|||
error: unnecessary structure name repetition
|
||||
--> $DIR/use_self.rs:256:21
|
||||
|
|
||||
LL | Bar {
|
||||
LL | Bar { foo: Foo {} }
|
||||
| ^^^ help: use the applicable keyword: `Self`
|
||||
|
||||
error: aborting due to 26 previous errors
|
||||
|
|
Loading…
Reference in a new issue