1
1
error: the function has a cognitive complexity of (28/25)
2
- --> tests/ui/cognitive_complexity.rs:6 :4
2
+ --> tests/ui/cognitive_complexity.rs:11 :4
3
3
|
4
4
LL | fn main() {
5
5
| ^^^^
@@ -9,151 +9,151 @@ LL | fn main() {
9
9
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
10
10
11
11
error: the function has a cognitive complexity of (7/1)
12
- --> tests/ui/cognitive_complexity.rs:93 :4
12
+ --> tests/ui/cognitive_complexity.rs:98 :4
13
13
|
14
14
LL | fn kaboom() {
15
15
| ^^^^^^
16
16
|
17
17
= help: you could split it up into multiple smaller functions
18
18
19
19
error: the function has a cognitive complexity of (2/1)
20
- --> tests/ui/cognitive_complexity.rs:153 :4
20
+ --> tests/ui/cognitive_complexity.rs:158 :4
21
21
|
22
22
LL | fn baa() {
23
23
| ^^^
24
24
|
25
25
= help: you could split it up into multiple smaller functions
26
26
27
27
error: the function has a cognitive complexity of (2/1)
28
- --> tests/ui/cognitive_complexity.rs:156 :13
28
+ --> tests/ui/cognitive_complexity.rs:161 :13
29
29
|
30
30
LL | let x = || match 99 {
31
31
| ^^
32
32
|
33
33
= help: you could split it up into multiple smaller functions
34
34
35
35
error: the function has a cognitive complexity of (2/1)
36
- --> tests/ui/cognitive_complexity.rs:174 :4
36
+ --> tests/ui/cognitive_complexity.rs:179 :4
37
37
|
38
38
LL | fn bar() {
39
39
| ^^^
40
40
|
41
41
= help: you could split it up into multiple smaller functions
42
42
43
43
error: the function has a cognitive complexity of (2/1)
44
- --> tests/ui/cognitive_complexity.rs:187 :4
44
+ --> tests/ui/cognitive_complexity.rs:192 :4
45
45
|
46
46
LL | fn dont_warn_on_tests() {
47
47
| ^^^^^^^^^^^^^^^^^^
48
48
|
49
49
= help: you could split it up into multiple smaller functions
50
50
51
51
error: the function has a cognitive complexity of (2/1)
52
- --> tests/ui/cognitive_complexity.rs:197 :4
52
+ --> tests/ui/cognitive_complexity.rs:202 :4
53
53
|
54
54
LL | fn barr() {
55
55
| ^^^^
56
56
|
57
57
= help: you could split it up into multiple smaller functions
58
58
59
59
error: the function has a cognitive complexity of (3/1)
60
- --> tests/ui/cognitive_complexity.rs:209 :4
60
+ --> tests/ui/cognitive_complexity.rs:214 :4
61
61
|
62
62
LL | fn barr2() {
63
63
| ^^^^^
64
64
|
65
65
= help: you could split it up into multiple smaller functions
66
66
67
67
error: the function has a cognitive complexity of (2/1)
68
- --> tests/ui/cognitive_complexity.rs:227 :4
68
+ --> tests/ui/cognitive_complexity.rs:232 :4
69
69
|
70
70
LL | fn barrr() {
71
71
| ^^^^^
72
72
|
73
73
= help: you could split it up into multiple smaller functions
74
74
75
75
error: the function has a cognitive complexity of (3/1)
76
- --> tests/ui/cognitive_complexity.rs:239 :4
76
+ --> tests/ui/cognitive_complexity.rs:244 :4
77
77
|
78
78
LL | fn barrr2() {
79
79
| ^^^^^^
80
80
|
81
81
= help: you could split it up into multiple smaller functions
82
82
83
83
error: the function has a cognitive complexity of (2/1)
84
- --> tests/ui/cognitive_complexity.rs:257 :4
84
+ --> tests/ui/cognitive_complexity.rs:262 :4
85
85
|
86
86
LL | fn barrrr() {
87
87
| ^^^^^^
88
88
|
89
89
= help: you could split it up into multiple smaller functions
90
90
91
91
error: the function has a cognitive complexity of (3/1)
92
- --> tests/ui/cognitive_complexity.rs:269 :4
92
+ --> tests/ui/cognitive_complexity.rs:274 :4
93
93
|
94
94
LL | fn barrrr2() {
95
95
| ^^^^^^^
96
96
|
97
97
= help: you could split it up into multiple smaller functions
98
98
99
99
error: the function has a cognitive complexity of (2/1)
100
- --> tests/ui/cognitive_complexity.rs:287 :4
100
+ --> tests/ui/cognitive_complexity.rs:292 :4
101
101
|
102
102
LL | fn cake() {
103
103
| ^^^^
104
104
|
105
105
= help: you could split it up into multiple smaller functions
106
106
107
107
error: the function has a cognitive complexity of (4/1)
108
- --> tests/ui/cognitive_complexity.rs:299 :8
108
+ --> tests/ui/cognitive_complexity.rs:304 :8
109
109
|
110
110
LL | pub fn read_file(input_path: &str) -> String {
111
111
| ^^^^^^^^^
112
112
|
113
113
= help: you could split it up into multiple smaller functions
114
114
115
115
error: the function has a cognitive complexity of (2/1)
116
- --> tests/ui/cognitive_complexity.rs:332 :4
116
+ --> tests/ui/cognitive_complexity.rs:337 :4
117
117
|
118
118
LL | fn void(void: Void) {
119
119
| ^^^^
120
120
|
121
121
= help: you could split it up into multiple smaller functions
122
122
123
123
error: the function has a cognitive complexity of (8/1)
124
- --> tests/ui/cognitive_complexity.rs:385 :4
124
+ --> tests/ui/cognitive_complexity.rs:390 :4
125
125
|
126
126
LL | fn early_ret() -> i32 {
127
127
| ^^^^^^^^^
128
128
|
129
129
= help: you could split it up into multiple smaller functions
130
130
131
131
error: the function has a cognitive complexity of (2/1)
132
- --> tests/ui/cognitive_complexity.rs:408 :13
132
+ --> tests/ui/cognitive_complexity.rs:413 :13
133
133
|
134
134
LL | let x = |a: i32, b: i32| -> i32 {
135
135
| ^^^^^^^^^^^^^^^^
136
136
|
137
137
= help: you could split it up into multiple smaller functions
138
138
139
139
error: the function has a cognitive complexity of (2/1)
140
- --> tests/ui/cognitive_complexity.rs:423 :8
140
+ --> tests/ui/cognitive_complexity.rs:428 :8
141
141
|
142
142
LL | fn moo(&self) {
143
143
| ^^^
144
144
|
145
145
= help: you could split it up into multiple smaller functions
146
146
147
147
error: the function has a cognitive complexity of (2/1)
148
- --> tests/ui/cognitive_complexity.rs:434 :14
148
+ --> tests/ui/cognitive_complexity.rs:439 :14
149
149
|
150
150
LL | async fn a() {
151
151
| ^
152
152
|
153
153
= help: you could split it up into multiple smaller functions
154
154
155
155
error: the function has a cognitive complexity of (2/1)
156
- --> tests/ui/cognitive_complexity.rs:443 :22
156
+ --> tests/ui/cognitive_complexity.rs:448 :22
157
157
|
158
158
LL | pub async fn async_method() {
159
159
| ^^^^^^^^^^^^
0 commit comments