mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-19 23:48:44 +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 {
|
impl Bar {
|
||||||
fn bar() -> Bar {
|
fn bar() -> Bar {
|
||||||
Bar {
|
Bar { foo: Foo {} }
|
||||||
foo: Foo{},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,7 +159,7 @@ LL | fn bar() -> Bar {
|
||||||
error: unnecessary structure name repetition
|
error: unnecessary structure name repetition
|
||||||
--> $DIR/use_self.rs:256:21
|
--> $DIR/use_self.rs:256:21
|
||||||
|
|
|
|
||||||
LL | Bar {
|
LL | Bar { foo: Foo {} }
|
||||||
| ^^^ help: use the applicable keyword: `Self`
|
| ^^^ help: use the applicable keyword: `Self`
|
||||||
|
|
||||||
error: aborting due to 26 previous errors
|
error: aborting due to 26 previous errors
|
||||||
|
|
Loading…
Add table
Reference in a new issue