1 error: the function has a cyclomatic complexity of 28
2 --> $DIR/cyclomatic_complexity.rs:7: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:92:1
21 94 | | 'a: for i in 0..20 {
22 95 | | '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:138:1
33 138 | / fn lots_of_short_circuits() -> bool {
34 139 | | 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:143:1
43 143 | / fn lots_of_short_circuits2() -> bool {
44 144 | | 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:148:1
54 149 | | 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:149:13
67 149 | 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:166:1
84 168 | | 0 => println!("hi"),
85 169 | | _ => 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:185:1
97 187 | | 0 => println!("hi"),
98 188 | | 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:195:1
111 197 | | 0 => println!("hi"),
112 198 | | 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:211:1
125 213 | | 0 => println!("hi"),
126 214 | | 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:221:1
137 221 | / fn barrr2() {
139 223 | | 0 => println!("hi"),
140 224 | | 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:237:1
151 237 | / fn barrrr() {
153 239 | | 0 => println!("hi"),
154 240 | | 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:247:1
165 247 | / fn barrrr2() {
167 249 | | 0 => println!("hi"),
168 250 | | 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:263:1
181 265 | | println!("yea");
184 269 | | 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:274:1
193 274 | / pub fn read_file(input_path: &str) -> String {
194 275 | | use std::fs::File;
195 276 | | use std::io::{Read, Write};
196 277 | | 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:305:1
207 305 | / 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:319:1
220 319 | / fn try() -> Result<i32, &'static str> {
223 322 | | _ => 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:327:1
233 327 | / fn try_again() -> Result<i32, &'static str> {
234 328 | | let _ = try!(Ok(42));
235 329 | | let _ = try!(Ok(43));
236 330 | | 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:343:1
247 343 | / fn early() -> Result<i32, &'static str> {
248 344 | | return Ok(5);
249 345 | | return Ok(5);
250 346 | | return Ok(5);
252 352 | | 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:356:1
261 356 | / fn early_ret() -> i32 {
262 357 | | let a = if true { 42 } else { return 0; };
263 358 | | let a = if a < 99 { 42 } else { return 0; };
264 359 | | 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