Commit d76efd7
committed
fix(listen): collapse
clippy 1.95 flags the nested `if !partial_frame.is_empty()` inside
the `OpCode::Data(Data::Continue)` arm as collapsible into a match
guard. Apply the suggested form in both flux.rs and websocket.rs.
Behavior is unchanged: when partial_frame is empty, the original
code's inner `if` skipped its body (net no-op); the new guard fails,
falls through to the `_ =>` "ignore" arm (same net no-op).if into match guard to satisfy clippy 1.951 parent 5d4d4f6 commit d76efd7
2 files changed
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
441 | 439 | | |
442 | 440 | | |
443 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
542 | 540 | | |
543 | 541 | | |
544 | 542 | | |
| |||
0 commit comments