2019-08-29 10:56:13 +02:00
|
|
|
error: the function has a cognitive complexity of (28/25)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:6:4
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn main() {
|
|
|
|
| ^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2019-02-23 02:19:50 +01:00
|
|
|
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
= help: you could split it up into multiple smaller functions
|
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (7/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:91:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn kaboom() {
|
|
|
|
| ^^^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:149:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn baa() {
|
|
|
|
| ^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
|
|
|
--> $DIR/cognitive_complexity.rs:150:13
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | let x = || match 99 {
|
|
|
|
| ^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:167:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn bar() {
|
|
|
|
| ^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:186:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn barr() {
|
|
|
|
| ^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (3/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:196:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn barr2() {
|
|
|
|
| ^^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:212:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn barrr() {
|
|
|
|
| ^^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (3/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:222:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn barrr2() {
|
|
|
|
| ^^^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:238:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn barrrr() {
|
|
|
|
| ^^^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (3/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:248:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn barrrr2() {
|
|
|
|
| ^^^^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:264:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn cake() {
|
|
|
|
| ^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (4/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:274:8
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | pub fn read_file(input_path: &str) -> String {
|
|
|
|
| ^^^^^^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:305:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn void(void: Void) {
|
|
|
|
| ^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2018-10-06 18:18:06 +02:00
|
|
|
|
2019-09-08 12:39:42 +02:00
|
|
|
error: the function has a cognitive complexity of (8/1)
|
2019-12-22 03:07:53 +01:00
|
|
|
--> $DIR/cognitive_complexity.rs:356:4
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
LL | fn early_ret() -> i32 {
|
|
|
|
| ^^^^^^^^^
|
2018-12-27 16:57:55 +01:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2019-12-22 03:07:53 +01:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
|
|
|
--> $DIR/cognitive_complexity.rs:377:13
|
|
|
|
|
|
|
|
|
LL | let x = |a: i32, b: i32| -> i32 {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
|
|
|
|
|
|
|
error: the function has a cognitive complexity of (2/1)
|
|
|
|
--> $DIR/cognitive_complexity.rs:390:8
|
|
|
|
|
|
|
|
|
LL | fn moo(&self) {
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
|
|
|
|
|
|
|
error: aborting due to 17 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|