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