1 error: the function has a cyclomatic complexity of 28
2 --> $DIR/cyclomatic_complexity.rs:16: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:101:1
21 103 | | 'a: for i in 0..20 {
22 104 | | '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:147:1
33 147 | / fn lots_of_short_circuits() -> bool {
34 148 | | 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:152:1
43 152 | / fn lots_of_short_circuits2() -> bool {
44 153 | | 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:157:1
54 158 | | 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:158:13
67 158 | 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:175:1
84 177 | | 0 => println!("hi"),
85 178 | | _ => 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:194:1
97 196 | | 0 => println!("hi"),
98 197 | | 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:204:1
111 206 | | 0 => println!("hi"),
112 207 | | 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:220:1
125 222 | | 0 => println!("hi"),
126 223 | | 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:230:1
137 230 | / fn barrr2() {
139 232 | | 0 => println!("hi"),
140 233 | | 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:246:1
151 246 | / fn barrrr() {
153 248 | | 0 => println!("hi"),
154 249 | | 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:256:1
165 256 | / fn barrrr2() {
167 258 | | 0 => println!("hi"),
168 259 | | 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:272:1
181 274 | | println!("yea");
184 278 | | 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:283:1
193 283 | / pub fn read_file(input_path: &str) -> String {
194 284 | | use std::fs::File;
195 285 | | use std::io::{Read, Write};
196 286 | | 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:314:1
207 314 | / fn void(void: Void) {
215 = help: you could split it up into multiple smaller functions
217 error: the function has a cyclomatic complexity of 1
218 --> $DIR/cyclomatic_complexity.rs:328:1
220 328 | / fn try() -> Result<i32, &'static str> {
223 331 | | _ => return Err("bla"),
228 = help: you could split it up into multiple smaller functions
230 error: the function has a cyclomatic complexity of 1
231 --> $DIR/cyclomatic_complexity.rs:336:1
233 336 | / fn try_again() -> Result<i32, &'static str> {
234 337 | | let _ = try!(Ok(42));
235 338 | | let _ = try!(Ok(43));
236 339 | | let _ = try!(Ok(44));
242 = help: you could split it up into multiple smaller functions
244 error: the function has a cyclomatic complexity of 1
245 --> $DIR/cyclomatic_complexity.rs:352:1
247 352 | / fn early() -> Result<i32, &'static str> {
248 353 | | return Ok(5);
249 354 | | return Ok(5);
250 355 | | return Ok(5);
252 361 | | return Ok(5);
256 = help: you could split it up into multiple smaller functions
258 error: the function has a cyclomatic complexity of 8
259 --> $DIR/cyclomatic_complexity.rs:366:1
261 366 | / fn early_ret() -> i32 {
262 367 | | let a = if true { 42 } else { return 0; };
263 368 | | let a = if a < 99 { 42 } else { return 0; };
264 369 | | let a = if a < 99 { 42 } else { return 0; };
270 = help: you could split it up into multiple smaller functions
272 error: aborting due to 20 previous errors