Commit f64e583
fix(msk): fix clippy lints in msk_event header parsing
- Replace `n as u8` cast with `u8::try_from(n).ok()` to avoid truncation
- Collapse nested `if let` blocks into a single `if let ... && let ...`
- Replace redundant closure `|o| o.len()` with `serde_json::Map::len`
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9dbcb53 commit f64e583
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
0 commit comments