We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a42dcb commit 0afd9efCopy full SHA for 0afd9ef
tests/ui/new_without_default.rs
@@ -152,7 +152,9 @@ pub struct AllowDerive;
152
153
impl AllowDerive {
154
#[allow(clippy::new_without_default)]
155
- pub fn new() -> Self { unimplemented!() }
+ pub fn new() -> Self {
156
+ unimplemented!()
157
+ }
158
}
159
160
fn main() {}
tests/ui/rename.rs
@@ -16,5 +16,7 @@ fn main() {}
16
struct Foo;
17
18
impl Foo {
19
- fn new() -> Self { Foo }
+ fn new() -> Self {
20
+ Foo
21
22
0 commit comments