1 error: the function has a cyclomatic complexity of 28
2 --> cyclomatic_complexity.rs:7:1
13 = note: `-D 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 --> cyclomatic_complexity.rs:92:1
21 94 | | 'a: for i in 0..20 {
22 95 | | 'b: for j in i..20 {
28 = note: `-D cyclomatic-complexity` implied by `-D warnings`
29 = help: you could split it up into multiple smaller functions
31 error: the function has a cyclomatic complexity of 1
32 --> cyclomatic_complexity.rs:138:1
34 138 | / fn lots_of_short_circuits() -> bool {
35 139 | | true && false && true && false && true && false && true
39 = note: `-D cyclomatic-complexity` implied by `-D warnings`
40 = help: you could split it up into multiple smaller functions
42 error: the function has a cyclomatic complexity of 1
43 --> cyclomatic_complexity.rs:143:1
45 143 | / fn lots_of_short_circuits2() -> bool {
46 144 | | true || false || true || false || true || false || true
50 = note: `-D cyclomatic-complexity` implied by `-D warnings`
51 = help: you could split it up into multiple smaller functions
53 error: the function has a cyclomatic complexity of 2
54 --> cyclomatic_complexity.rs:148:1
57 149 | | let x = || match 99 {
65 = note: `-D cyclomatic-complexity` implied by `-D warnings`
66 = help: you could split it up into multiple smaller functions
68 error: the function has a cyclomatic complexity of 2
69 --> cyclomatic_complexity.rs:149:13
71 149 | let x = || match 99 {
81 = note: `-D cyclomatic-complexity` implied by `-D warnings`
82 = help: you could split it up into multiple smaller functions
84 error: the function has a cyclomatic complexity of 2
85 --> cyclomatic_complexity.rs:166:1
89 168 | | 0 => println!("hi"),
90 169 | | _ => println!("bye"),
95 = note: `-D cyclomatic-complexity` implied by `-D warnings`
96 = help: you could split it up into multiple smaller functions
98 error: the function has a cyclomatic complexity of 2
99 --> cyclomatic_complexity.rs:185:1
103 187 | | 0 => println!("hi"),
104 188 | | 1 => println!("bla"),
110 = note: `-D cyclomatic-complexity` implied by `-D warnings`
111 = help: you could split it up into multiple smaller functions
113 error: the function has a cyclomatic complexity of 3
114 --> cyclomatic_complexity.rs:195:1
118 197 | | 0 => println!("hi"),
119 198 | | 1 => println!("bla"),
125 = note: `-D cyclomatic-complexity` implied by `-D warnings`
126 = help: you could split it up into multiple smaller functions
128 error: the function has a cyclomatic complexity of 2
129 --> cyclomatic_complexity.rs:211:1
133 213 | | 0 => println!("hi"),
134 214 | | 1 => panic!("bla"),
140 = note: `-D cyclomatic-complexity` implied by `-D warnings`
141 = help: you could split it up into multiple smaller functions
143 error: the function has a cyclomatic complexity of 3
144 --> cyclomatic_complexity.rs:221:1
146 221 | / fn barrr2() {
148 223 | | 0 => println!("hi"),
149 224 | | 1 => panic!("bla"),
155 = note: `-D cyclomatic-complexity` implied by `-D warnings`
156 = help: you could split it up into multiple smaller functions
158 error: the function has a cyclomatic complexity of 2
159 --> cyclomatic_complexity.rs:237:1
161 237 | / fn barrrr() {
163 239 | | 0 => println!("hi"),
164 240 | | 1 => println!("bla"),
170 = note: `-D cyclomatic-complexity` implied by `-D warnings`
171 = help: you could split it up into multiple smaller functions
173 error: the function has a cyclomatic complexity of 3
174 --> cyclomatic_complexity.rs:247:1
176 247 | / fn barrrr2() {
178 249 | | 0 => println!("hi"),
179 250 | | 1 => println!("bla"),
185 = note: `-D cyclomatic-complexity` implied by `-D warnings`
186 = help: you could split it up into multiple smaller functions
188 error: the function has a cyclomatic complexity of 2
189 --> cyclomatic_complexity.rs:263:1
193 265 | | println!("yea");
196 269 | | println!("whee");
200 = note: `-D cyclomatic-complexity` implied by `-D warnings`
201 = help: you could split it up into multiple smaller functions
203 error: the function has a cyclomatic complexity of 4
204 --> cyclomatic_complexity.rs:274:1
206 274 | / pub fn read_file(input_path: &str) -> String {
207 275 | | use std::fs::File;
208 276 | | use std::io::{Read, Write};
209 277 | | use std::path::Path;
215 = note: `-D cyclomatic-complexity` implied by `-D warnings`
216 = help: you could split it up into multiple smaller functions
218 error: the function has a cyclomatic complexity of 1
219 --> cyclomatic_complexity.rs:305:1
221 305 | / fn void(void: Void) {
229 = note: `-D cyclomatic-complexity` implied by `-D warnings`
230 = help: you could split it up into multiple smaller functions
232 error: the function has a cyclomatic complexity of 1
233 --> cyclomatic_complexity.rs:319:1
235 319 | / fn try() -> Result<i32, &'static str> {
238 322 | | _ => return Err("bla"),
243 = note: `-D cyclomatic-complexity` implied by `-D warnings`
244 = help: you could split it up into multiple smaller functions
246 error: the function has a cyclomatic complexity of 1
247 --> cyclomatic_complexity.rs:327:1
249 327 | / fn try_again() -> Result<i32, &'static str> {
250 328 | | let _ = try!(Ok(42));
251 329 | | let _ = try!(Ok(43));
252 330 | | let _ = try!(Ok(44));
258 = note: `-D cyclomatic-complexity` implied by `-D warnings`
259 = help: you could split it up into multiple smaller functions
261 error: the function has a cyclomatic complexity of 1
262 --> cyclomatic_complexity.rs:343:1
264 343 | / fn early() -> Result<i32, &'static str> {
265 344 | | return Ok(5);
266 345 | | return Ok(5);
267 346 | | return Ok(5);
269 352 | | return Ok(5);
273 = note: `-D cyclomatic-complexity` implied by `-D warnings`
274 = help: you could split it up into multiple smaller functions
276 error: the function has a cyclomatic complexity of 8
277 --> cyclomatic_complexity.rs:356:1
279 356 | / fn early_ret() -> i32 {
280 357 | | let a = if true { 42 } else { return 0; };
281 358 | | let a = if a < 99 { 42 } else { return 0; };
282 359 | | let a = if a < 99 { 42 } else { return 0; };
288 = note: `-D cyclomatic-complexity` implied by `-D warnings`
289 = help: you could split it up into multiple smaller functions
291 error: aborting due to previous error(s)
294 To learn more, run the command again with --verbose.