1 error: the function has a cognitive complexity of (28/25)
2 --> $DIR/cognitive_complexity.rs:6:1
13 = note: `-D clippy::cognitive-complexity` implied by `-D warnings`
14 = help: you could split it up into multiple smaller functions
16 error: the function has a cognitive complexity of (7/1)
17 --> $DIR/cognitive_complexity.rs:91:1
21 LL | | 'a: for i in 0..20 {
22 LL | | 'b: for j in i..20 {
28 = help: you could split it up into multiple smaller functions
30 error: the function has a cognitive complexity of (2/1)
31 --> $DIR/cognitive_complexity.rs:149:1
34 LL | | let x = || match 99 {
42 = help: you could split it up into multiple smaller functions
44 error: the function has a cognitive complexity of (2/1)
45 --> $DIR/cognitive_complexity.rs:150:13
47 LL | let x = || match 99 {
57 = help: you could split it up into multiple smaller functions
59 error: the function has a cognitive complexity of (2/1)
60 --> $DIR/cognitive_complexity.rs:167:1
64 LL | | 0 => println!("hi"),
65 LL | | _ => println!("bye"),
70 = help: you could split it up into multiple smaller functions
72 error: the function has a cognitive complexity of (2/1)
73 --> $DIR/cognitive_complexity.rs:186:1
77 LL | | 0 => println!("hi"),
78 LL | | 1 => println!("bla"),
84 = help: you could split it up into multiple smaller functions
86 error: the function has a cognitive complexity of (3/1)
87 --> $DIR/cognitive_complexity.rs:196:1
91 LL | | 0 => println!("hi"),
92 LL | | 1 => println!("bla"),
98 = help: you could split it up into multiple smaller functions
100 error: the function has a cognitive complexity of (2/1)
101 --> $DIR/cognitive_complexity.rs:212:1
105 LL | | 0 => println!("hi"),
106 LL | | 1 => panic!("bla"),
112 = help: you could split it up into multiple smaller functions
114 error: the function has a cognitive complexity of (3/1)
115 --> $DIR/cognitive_complexity.rs:222:1
119 LL | | 0 => println!("hi"),
120 LL | | 1 => panic!("bla"),
126 = help: you could split it up into multiple smaller functions
128 error: the function has a cognitive complexity of (2/1)
129 --> $DIR/cognitive_complexity.rs:238:1
133 LL | | 0 => println!("hi"),
134 LL | | 1 => println!("bla"),
140 = help: you could split it up into multiple smaller functions
142 error: the function has a cognitive complexity of (3/1)
143 --> $DIR/cognitive_complexity.rs:248:1
145 LL | / fn barrrr2() {
147 LL | | 0 => println!("hi"),
148 LL | | 1 => println!("bla"),
154 = help: you could split it up into multiple smaller functions
156 error: the function has a cognitive complexity of (2/1)
157 --> $DIR/cognitive_complexity.rs:264:1
161 LL | | println!("yea");
164 LL | | println!("whee");
168 = help: you could split it up into multiple smaller functions
170 error: the function has a cognitive complexity of (4/1)
171 --> $DIR/cognitive_complexity.rs:274:1
173 LL | / pub fn read_file(input_path: &str) -> String {
174 LL | | use std::fs::File;
175 LL | | use std::io::{Read, Write};
176 LL | | use std::path::Path;
182 = help: you could split it up into multiple smaller functions
184 error: the function has a cognitive complexity of (2/1)
185 --> $DIR/cognitive_complexity.rs:305:1
187 LL | / fn void(void: Void) {
194 = help: you could split it up into multiple smaller functions
196 error: the function has a cognitive complexity of (8/1)
197 --> $DIR/cognitive_complexity.rs:356:1
199 LL | / fn early_ret() -> i32 {
200 LL | | let a = if true { 42 } else { return 0; };
201 LL | | let a = if a < 99 { 42 } else { return 0; };
202 LL | | let a = if a < 99 { 42 } else { return 0; };
208 = help: you could split it up into multiple smaller functions
210 error: aborting due to 15 previous errors