11error: 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
33 |
44LL | fn main() {
55 | ^^^^
@@ -9,151 +9,151 @@ LL | fn main() {
99 = help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
1010
1111error: 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
1313 |
1414LL | fn kaboom() {
1515 | ^^^^^^
1616 |
1717 = help: you could split it up into multiple smaller functions
1818
1919error: 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
2121 |
2222LL | fn baa() {
2323 | ^^^
2424 |
2525 = help: you could split it up into multiple smaller functions
2626
2727error: 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
2929 |
3030LL | let x = || match 99 {
3131 | ^^
3232 |
3333 = help: you could split it up into multiple smaller functions
3434
3535error: 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
3737 |
3838LL | fn bar() {
3939 | ^^^
4040 |
4141 = help: you could split it up into multiple smaller functions
4242
4343error: 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
4545 |
4646LL | fn dont_warn_on_tests() {
4747 | ^^^^^^^^^^^^^^^^^^
4848 |
4949 = help: you could split it up into multiple smaller functions
5050
5151error: 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
5353 |
5454LL | fn barr() {
5555 | ^^^^
5656 |
5757 = help: you could split it up into multiple smaller functions
5858
5959error: 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
6161 |
6262LL | fn barr2() {
6363 | ^^^^^
6464 |
6565 = help: you could split it up into multiple smaller functions
6666
6767error: 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
6969 |
7070LL | fn barrr() {
7171 | ^^^^^
7272 |
7373 = help: you could split it up into multiple smaller functions
7474
7575error: 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
7777 |
7878LL | fn barrr2() {
7979 | ^^^^^^
8080 |
8181 = help: you could split it up into multiple smaller functions
8282
8383error: 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
8585 |
8686LL | fn barrrr() {
8787 | ^^^^^^
8888 |
8989 = help: you could split it up into multiple smaller functions
9090
9191error: 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
9393 |
9494LL | fn barrrr2() {
9595 | ^^^^^^^
9696 |
9797 = help: you could split it up into multiple smaller functions
9898
9999error: 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
101101 |
102102LL | fn cake() {
103103 | ^^^^
104104 |
105105 = help: you could split it up into multiple smaller functions
106106
107107error: 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
109109 |
110110LL | pub fn read_file(input_path: &str) -> String {
111111 | ^^^^^^^^^
112112 |
113113 = help: you could split it up into multiple smaller functions
114114
115115error: 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
117117 |
118118LL | fn void(void: Void) {
119119 | ^^^^
120120 |
121121 = help: you could split it up into multiple smaller functions
122122
123123error: 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
125125 |
126126LL | fn early_ret() -> i32 {
127127 | ^^^^^^^^^
128128 |
129129 = help: you could split it up into multiple smaller functions
130130
131131error: 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
133133 |
134134LL | let x = |a: i32, b: i32| -> i32 {
135135 | ^^^^^^^^^^^^^^^^
136136 |
137137 = help: you could split it up into multiple smaller functions
138138
139139error: 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
141141 |
142142LL | fn moo(&self) {
143143 | ^^^
144144 |
145145 = help: you could split it up into multiple smaller functions
146146
147147error: 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
149149 |
150150LL | async fn a() {
151151 | ^
152152 |
153153 = help: you could split it up into multiple smaller functions
154154
155155error: 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
157157 |
158158LL | pub async fn async_method() {
159159 | ^^^^^^^^^^^^
0 commit comments