mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 12:03:28 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
13 lines
170 B
Rust
13 lines
170 B
Rust
#![allow(stutter)]
|
|
|
|
#[warn(clippy::stutter)]
|
|
fn main() {}
|
|
|
|
#[warn(clippy::new_without_default_derive)]
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
fn new() -> Self {
|
|
Foo
|
|
}
|
|
}
|