error: the function has a cognitive complexity of (28/25) --> $DIR/cognitive_complexity.rs:6:4 | LL | fn main() { | ^^^^ | = help: you could split it up into multiple smaller functions = note: `-D clippy::cognitive-complexity` implied by `-D warnings` error: the function has a cognitive complexity of (7/1) --> $DIR/cognitive_complexity.rs:92:4 | LL | fn kaboom() { | ^^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:151:4 | LL | fn baa() { | ^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:153:13 | LL | let x = || match 99 { | ^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:171:4 | LL | fn bar() { | ^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:183:4 | LL | fn dont_warn_on_tests() { | ^^^^^^^^^^^^^^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:192:4 | LL | fn barr() { | ^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (3/1) --> $DIR/cognitive_complexity.rs:203:4 | LL | fn barr2() { | ^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:220:4 | LL | fn barrr() { | ^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (3/1) --> $DIR/cognitive_complexity.rs:231:4 | LL | fn barrr2() { | ^^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:248:4 | LL | fn barrrr() { | ^^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (3/1) --> $DIR/cognitive_complexity.rs:259:4 | LL | fn barrrr2() { | ^^^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:276:4 | LL | fn cake() { | ^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (4/1) --> $DIR/cognitive_complexity.rs:287:8 | LL | pub fn read_file(input_path: &str) -> String { | ^^^^^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:319:4 | LL | fn void(void: Void) { | ^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (8/1) --> $DIR/cognitive_complexity.rs:371:4 | LL | fn early_ret() -> i32 { | ^^^^^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:393:13 | LL | let x = |a: i32, b: i32| -> i32 { | ^^^^^^^^^^^^^^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:407:8 | LL | fn moo(&self) { | ^^^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:417:14 | LL | async fn a() { | ^ | = help: you could split it up into multiple smaller functions error: the function has a cognitive complexity of (2/1) --> $DIR/cognitive_complexity.rs:425:22 | LL | pub async fn async_method() { | ^^^^^^^^^^^^ | = help: you could split it up into multiple smaller functions error: aborting due to 20 previous errors