mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
13 lines
235 B
Rust
13 lines
235 B
Rust
#![allow(clippy::uninlined_format_args)]
|
|
|
|
fn main() {}
|
|
|
|
#[warn(clippy::cognitive_complexity)]
|
|
fn cognitive_complexity() {
|
|
let x = vec![1, 2, 3];
|
|
for i in x {
|
|
if i == 1 {
|
|
println!("{}", i);
|
|
}
|
|
}
|
|
}
|