]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: the function has a cognitive complexity of (28/25) |
2 | --> $DIR/cognitive_complexity.rs:6:4 | |
3 | | | |
4 | LL | fn main() { | |
5 | | ^^^^ | |
6 | | | |
f20569fa | 7 | = help: you could split it up into multiple smaller functions |
2b03887a | 8 | = note: `-D clippy::cognitive-complexity` implied by `-D warnings` |
f20569fa XL |
9 | |
10 | error: the function has a cognitive complexity of (7/1) | |
11 | --> $DIR/cognitive_complexity.rs:91:4 | |
12 | | | |
13 | LL | fn kaboom() { | |
14 | | ^^^^^^ | |
15 | | | |
16 | = help: you could split it up into multiple smaller functions | |
17 | ||
18 | error: the function has a cognitive complexity of (2/1) | |
19 | --> $DIR/cognitive_complexity.rs:149:4 | |
20 | | | |
21 | LL | fn baa() { | |
22 | | ^^^ | |
23 | | | |
24 | = help: you could split it up into multiple smaller functions | |
25 | ||
26 | error: the function has a cognitive complexity of (2/1) | |
27 | --> $DIR/cognitive_complexity.rs:150:13 | |
28 | | | |
29 | LL | let x = || match 99 { | |
30 | | ^^ | |
31 | | | |
32 | = help: you could split it up into multiple smaller functions | |
33 | ||
34 | error: the function has a cognitive complexity of (2/1) | |
35 | --> $DIR/cognitive_complexity.rs:167:4 | |
36 | | | |
37 | LL | fn bar() { | |
38 | | ^^^ | |
39 | | | |
40 | = help: you could split it up into multiple smaller functions | |
41 | ||
42 | error: the function has a cognitive complexity of (2/1) | |
43 | --> $DIR/cognitive_complexity.rs:186:4 | |
44 | | | |
45 | LL | fn barr() { | |
46 | | ^^^^ | |
47 | | | |
48 | = help: you could split it up into multiple smaller functions | |
49 | ||
50 | error: the function has a cognitive complexity of (3/1) | |
51 | --> $DIR/cognitive_complexity.rs:196:4 | |
52 | | | |
53 | LL | fn barr2() { | |
54 | | ^^^^^ | |
55 | | | |
56 | = help: you could split it up into multiple smaller functions | |
57 | ||
58 | error: the function has a cognitive complexity of (2/1) | |
59 | --> $DIR/cognitive_complexity.rs:212:4 | |
60 | | | |
61 | LL | fn barrr() { | |
62 | | ^^^^^ | |
63 | | | |
64 | = help: you could split it up into multiple smaller functions | |
65 | ||
66 | error: the function has a cognitive complexity of (3/1) | |
67 | --> $DIR/cognitive_complexity.rs:222:4 | |
68 | | | |
69 | LL | fn barrr2() { | |
70 | | ^^^^^^ | |
71 | | | |
72 | = help: you could split it up into multiple smaller functions | |
73 | ||
74 | error: the function has a cognitive complexity of (2/1) | |
75 | --> $DIR/cognitive_complexity.rs:238:4 | |
76 | | | |
77 | LL | fn barrrr() { | |
78 | | ^^^^^^ | |
79 | | | |
80 | = help: you could split it up into multiple smaller functions | |
81 | ||
82 | error: the function has a cognitive complexity of (3/1) | |
83 | --> $DIR/cognitive_complexity.rs:248:4 | |
84 | | | |
85 | LL | fn barrrr2() { | |
86 | | ^^^^^^^ | |
87 | | | |
88 | = help: you could split it up into multiple smaller functions | |
89 | ||
90 | error: the function has a cognitive complexity of (2/1) | |
91 | --> $DIR/cognitive_complexity.rs:264:4 | |
92 | | | |
93 | LL | fn cake() { | |
94 | | ^^^^ | |
95 | | | |
96 | = help: you could split it up into multiple smaller functions | |
97 | ||
98 | error: the function has a cognitive complexity of (4/1) | |
99 | --> $DIR/cognitive_complexity.rs:274:8 | |
100 | | | |
101 | LL | pub fn read_file(input_path: &str) -> String { | |
102 | | ^^^^^^^^^ | |
103 | | | |
104 | = help: you could split it up into multiple smaller functions | |
105 | ||
106 | error: the function has a cognitive complexity of (2/1) | |
107 | --> $DIR/cognitive_complexity.rs:305:4 | |
108 | | | |
109 | LL | fn void(void: Void) { | |
110 | | ^^^^ | |
111 | | | |
112 | = help: you could split it up into multiple smaller functions | |
113 | ||
114 | error: the function has a cognitive complexity of (8/1) | |
115 | --> $DIR/cognitive_complexity.rs:356:4 | |
116 | | | |
117 | LL | fn early_ret() -> i32 { | |
118 | | ^^^^^^^^^ | |
119 | | | |
120 | = help: you could split it up into multiple smaller functions | |
121 | ||
122 | error: the function has a cognitive complexity of (2/1) | |
123 | --> $DIR/cognitive_complexity.rs:377:13 | |
124 | | | |
125 | LL | let x = |a: i32, b: i32| -> i32 { | |
126 | | ^^^^^^^^^^^^^^^^ | |
127 | | | |
128 | = help: you could split it up into multiple smaller functions | |
129 | ||
130 | error: the function has a cognitive complexity of (2/1) | |
131 | --> $DIR/cognitive_complexity.rs:390:8 | |
132 | | | |
133 | LL | fn moo(&self) { | |
134 | | ^^^ | |
135 | | | |
136 | = help: you could split it up into multiple smaller functions | |
137 | ||
487cf647 FG |
138 | error: the function has a cognitive complexity of (2/1) |
139 | --> $DIR/cognitive_complexity.rs:399:14 | |
140 | | | |
141 | LL | async fn a() { | |
142 | | ^ | |
143 | | | |
144 | = help: you could split it up into multiple smaller functions | |
145 | ||
146 | error: the function has a cognitive complexity of (2/1) | |
147 | --> $DIR/cognitive_complexity.rs:406:22 | |
148 | | | |
149 | LL | pub async fn async_method() { | |
150 | | ^^^^^^^^^^^^ | |
151 | | | |
152 | = help: you could split it up into multiple smaller functions | |
153 | ||
154 | error: aborting due to 19 previous errors | |
f20569fa | 155 |