Skip to content

Commit 0afd9ef

Browse files
committed
Run rustfmt on the ui tests
1 parent 0a42dcb commit 0afd9ef

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/ui/new_without_default.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ pub struct AllowDerive;
152152

153153
impl AllowDerive {
154154
#[allow(clippy::new_without_default)]
155-
pub fn new() -> Self { unimplemented!() }
155+
pub fn new() -> Self {
156+
unimplemented!()
157+
}
156158
}
157159

158160
fn main() {}

tests/ui/rename.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ fn main() {}
1616
struct Foo;
1717

1818
impl Foo {
19-
fn new() -> Self { Foo }
19+
fn new() -> Self {
20+
Foo
21+
}
2022
}

0 commit comments

Comments
 (0)