698363122e
Before this change, adding a lint was a difficult matter because it always had some overhead involved. This was because all lints would run, no matter their default level, or if the user had #![allow]ed them. This PR changes that
18 lines
217 B
Rust
18 lines
217 B
Rust
#[allow(clippy::all)]
|
|
|
|
fn main() {
|
|
#[clippy::author]
|
|
let _ = if true {
|
|
1 == 1;
|
|
} else {
|
|
2 == 2;
|
|
};
|
|
|
|
let a = true;
|
|
|
|
#[clippy::author]
|
|
if let true = a {
|
|
} else {
|
|
};
|
|
}
|