2022-10-06 07:44:38 +00:00
|
|
|
#![allow(clippy::uninlined_format_args)]
|
|
|
|
|
2019-02-23 01:19:50 +00:00
|
|
|
fn main() {}
|
2022-08-11 17:42:16 +00:00
|
|
|
|
|
|
|
#[warn(clippy::cognitive_complexity)]
|
|
|
|
fn cognitive_complexity() {
|
|
|
|
let x = vec![1, 2, 3];
|
|
|
|
for i in x {
|
|
|
|
if i == 1 {
|
|
|
|
println!("{}", i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|