Commit 6855f2b
authored
fix: address clippy collapsible_match warnings (#3863)
## Which issue does this PR close?
Closes #3862.
## Rationale for this change
Although this `collapsible_match` error happens on a nightly version (1.96.0), I'm making the PR since they need to be fixed anyway.
## What changes are included in this PR?
Collapse `if` into outer `match` to fix clippy error.
## How are these changes tested?
Existing tests.1 parent 423b572 commit 6855f2b
2 files changed
Lines changed: 17 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 289 | + | |
296 | 290 | | |
297 | 291 | | |
298 | 292 | | |
| |||
301 | 295 | | |
302 | 296 | | |
303 | 297 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 298 | + | |
| 299 | + | |
310 | 300 | | |
| 301 | + | |
311 | 302 | | |
312 | 303 | | |
313 | 304 | | |
| |||
521 | 512 | | |
522 | 513 | | |
523 | 514 | | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
| 515 | + | |
531 | 516 | | |
532 | 517 | | |
533 | 518 | | |
| |||
1353 | 1338 | | |
1354 | 1339 | | |
1355 | 1340 | | |
1356 | | - | |
| 1341 | + | |
1357 | 1342 | | |
1358 | 1343 | | |
1359 | 1344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 161 | + | |
| 162 | + | |
165 | 163 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 164 | + | |
| 165 | + | |
170 | 166 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 167 | + | |
| 168 | + | |
175 | 169 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 170 | + | |
| 171 | + | |
180 | 172 | | |
181 | 173 | | |
182 | 174 | | |
| |||
185 | 177 | | |
186 | 178 | | |
187 | 179 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 180 | + | |
| 181 | + | |
192 | 182 | | |
| 183 | + | |
193 | 184 | | |
194 | 185 | | |
195 | 186 | | |
| |||
0 commit comments