You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(lint): resolve clippy warnings across default and feature builds
Clean up all clippy lints across the default feature set and the
memory/advisor/multimodal/pdf builds. Includes lints that only surface on
clippy 1.96.0. Existing #[allow(clippy::too_many_arguments)] convention preserved
for the three large builder/spawn functions to stay consistent with the ~17 pre-existing
allows in the codebase.
Fixes (clippy 1.96.0):
- ui/renderer: prefix unused `rows` bindings with `_` (x3)
- agent/runner: replace useless `format!` with `.to_string()`
- config/mod: collapse nested `if let` into `if … && let …` (x2)
- config/load: build rich default via struct literal + cfg-gated fields
and `..Default::default()` instead of field reassignment after default
- permission/checker: merge identical if/else branches into one condition
- ui/status: replace manual `match` with `Option::map`
- ui/mod: drop useless `.into()`, collapse nested `if let` (incl. advisor-gated)
- ui/slash/add: collapse nested `if let` (multimodal-gated)
- main: build capability list as a cfg-gated array literal instead of
`Vec::new()` followed by pushes
- extras/memory: elide redundant explicit lifetime in `truncate_to_bytes`
- session/storage: `sort_by` -> `sort_by_key(Reverse(..))`
- ui/pickers/models: `sort_by` -> `sort_by_key(Reverse(..))`
- ui/status: manual checked division -> `checked_div(..).unwrap_or(0)`
0 commit comments