1 error: the function has a cyclomatic complexity of 28
2 --> $DIR/cyclomatic_complexity.rs:17: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:102:1
21 104 | | 'a: for i in 0..20 {
22 105 | | '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:148:1
33 148 | / fn lots_of_short_circuits() -> bool {
34 149 | | 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:153:1
43 153 | / fn lots_of_short_circuits2() -> bool {
44 154 | | 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:158:1
54 159 | | 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:159:13
67 159 | 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:176:1
84 178 | | 0 => println!("hi"),
85 179 | | _ => 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:195:1
97 197 | | 0 => println!("hi"),
98 198 | | 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:205:1
111 207 | | 0 => println!("hi"),
112 208 | | 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:221:1
125 223 | | 0 => println!("hi"),
126 224 | | 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:231:1
137 231 | / fn barrr2() {
139 233 | | 0 => println!("hi"),
140 234 | | 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:247:1
151 247 | / fn barrrr() {
153 249 | | 0 => println!("hi"),
154 250 | | 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:257:1
165 257 | / fn barrrr2() {
167 259 | | 0 => println!("hi"),
168 260 | | 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:273:1
181 275 | | println!("yea");
184 279 | | 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:284:1
193 284 | / pub fn read_file(input_path: &str) -> String {
194 285 | | use std::fs::File;
195 286 | | use std::io::{Read, Write};
196 287 | | 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:315:1
207 315 | / 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:329:1
220 329 | / fn try() -> Result<i32, &'static str> {
223 332 | | _ => 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:337:1
233 337 | / fn try_again() -> Result<i32, &'static str> {
234 338 | | let _ = try!(Ok(42));
235 339 | | let _ = try!(Ok(43));
236 340 | | 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:353:1
247 353 | / fn early() -> Result<i32, &'static str> {
248 354 | | return Ok(5);
249 355 | | return Ok(5);
250 356 | | return Ok(5);
252 362 | | 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