Commit 44def06
fix(codex): satisfy newer clippy in the codex event parser
CI runs dtolnay/rust-toolchain@stable with no rust-toolchain.toml pin, so
its clippy moved ahead of the local one and started flagging two spots in
providers/codex.rs that predate this branch:
- manual_filter: `.and_then(|i| if i.is_null() { None } else { Some(i) })`
is `.filter(|i| !i.is_null())`
- question_mark: the trailing `else { return None }` on the tool-argument
extraction is `val.as_array()?`
Both rewrites are behaviour-preserving; the codex provider tests cover them.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fd0aca4 commit 44def06
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
603 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
604 | 605 | | |
605 | 606 | | |
606 | 607 | | |
607 | | - | |
608 | | - | |
609 | 608 | | |
610 | 609 | | |
611 | 610 | | |
| |||
0 commit comments