1 error: the function has a cyclomatic complexity of 28
2 --> $DIR/cyclomatic_complexity.rs:15:1
13 = note: `-D clippy::cyclomatic-complexity` implied by `-D warnings`
14 = help: you could split it up into multiple smaller functions
16 error: the function has a cyclomatic complexity of 7
17 --> $DIR/cyclomatic_complexity.rs:100:1
21 102 | | 'a: for i in 0..20 {
22 103 | | 'b: for j in i..20 {
28 = help: you could split it up into multiple smaller functions
30 error: the function has a cyclomatic complexity of 1
31 --> $DIR/cyclomatic_complexity.rs:146:1
33 146 | / fn lots_of_short_circuits() -> bool {
34 147 | | true && false && true && false && true && false && true
38 = help: you could split it up into multiple smaller functions
40 error: the function has a cyclomatic complexity of 1
41 --> $DIR/cyclomatic_complexity.rs:151:1
43 151 | / fn lots_of_short_circuits2() -> bool {
44 152 | | true || false || true || false || true || false || true
48 = help: you could split it up into multiple smaller functions
50 error: the function has a cyclomatic complexity of 2
51 --> $DIR/cyclomatic_complexity.rs:156:1
54 157 | | let x = || match 99 {
62 = help: you could split it up into multiple smaller functions
64 error: the function has a cyclomatic complexity of 2
65 --> $DIR/cyclomatic_complexity.rs:157:13
67 157 | let x = || match 99 {
77 = help: you could split it up into multiple smaller functions
79 error: the function has a cyclomatic complexity of 2
80 --> $DIR/cyclomatic_complexity.rs:174:1
84 176 | | 0 => println!("hi"),
85 177 | | _ => println!("bye"),
90 = help: you could split it up into multiple smaller functions
92 error: the function has a cyclomatic complexity of 2
93 --> $DIR/cyclomatic_complexity.rs:193:1
97 195 | | 0 => println!("hi"),
98 196 | | 1 => println!("bla"),
104 = help: you could split it up into multiple smaller functions
106 error: the function has a cyclomatic complexity of 3
107 --> $DIR/cyclomatic_complexity.rs:203:1
111 205 | | 0 => println!("hi"),
112 206 | | 1 => println!("bla"),
118 = help: you could split it up into multiple smaller functions
120 error: the function has a cyclomatic complexity of 2
121 --> $DIR/cyclomatic_complexity.rs:219:1
125 221 | | 0 => println!("hi"),
126 222 | | 1 => panic!("bla"),
132 = help: you could split it up into multiple smaller functions
134 error: the function has a cyclomatic complexity of 3
135 --> $DIR/cyclomatic_complexity.rs:229:1
137 229 | / fn barrr2() {
139 231 | | 0 => println!("hi"),
140 232 | | 1 => panic!("bla"),
146 = help: you could split it up into multiple smaller functions
148 error: the function has a cyclomatic complexity of 2
149 --> $DIR/cyclomatic_complexity.rs:245:1
151 245 | / fn barrrr() {
153 247 | | 0 => println!("hi"),
154 248 | | 1 => println!("bla"),
160 = help: you could split it up into multiple smaller functions
162 error: the function has a cyclomatic complexity of 3
163 --> $DIR/cyclomatic_complexity.rs:255:1
165 255 | / fn barrrr2() {
167 257 | | 0 => println!("hi"),
168 258 | | 1 => println!("bla"),
174 = help: you could split it up into multiple smaller functions
176 error: the function has a cyclomatic complexity of 2
177 --> $DIR/cyclomatic_complexity.rs:271:1
181 273 | | println!("yea");
184 277 | | println!("whee");
188 = help: you could split it up into multiple smaller functions
190 error: the function has a cyclomatic complexity of 4
191 --> $DIR/cyclomatic_complexity.rs:281:1
193 281 | / pub fn read_file(input_path: &str) -> String {
194 282 | | use std::fs::File;
195 283 | | use std::io::{Read, Write};
196 284 | | use std::path::Path;
202 = help: you could split it up into multiple smaller functions
204 error: the function has a cyclomatic complexity of 1
205 --> $DIR/cyclomatic_complexity.rs:312:1
207 312 | / fn void(void: Void) {
209 314 | | match void {}
214 = help: you could split it up into multiple smaller functions
216 error: the function has a cyclomatic complexity of 1
217 --> $DIR/cyclomatic_complexity.rs:325:1
219 325 | / fn try() -> Result<i32, &'static str> {
222 328 | | _ => return Err("bla"),
227 = help: you could split it up into multiple smaller functions
229 error: the function has a cyclomatic complexity of 1
230 --> $DIR/cyclomatic_complexity.rs:333:1
232 333 | / fn try_again() -> Result<i32, &'static str> {
233 334 | | let _ = try!(Ok(42));
234 335 | | let _ = try!(Ok(43));
235 336 | | let _ = try!(Ok(44));
241 = help: you could split it up into multiple smaller functions
243 error: the function has a cyclomatic complexity of 1
244 --> $DIR/cyclomatic_complexity.rs:349:1
246 349 | / fn early() -> Result<i32, &'static str> {
247 350 | | return Ok(5);
248 351 | | return Ok(5);
249 352 | | return Ok(5);
251 358 | | return Ok(5);
255 = help: you could split it up into multiple smaller functions
257 error: the function has a cyclomatic complexity of 8
258 --> $DIR/cyclomatic_complexity.rs:363:1
260 363 | / fn early_ret() -> i32 {
261 364 | | let a = if true { 42 } else { return 0; };
262 365 | | let a = if a < 99 { 42 } else { return 0; };
263 366 | | let a = if a < 99 { 42 } else { return 0; };
269 = help: you could split it up into multiple smaller functions
271 error: aborting due to 20 previous errors