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
fix: pass clippy --all-targets -D warnings + fmt for CI
Outcome:
- cargo fmt --all -- --check → pass
- cargo clippy --all-targets --all-features -- -D warnings → pass
- cargo test --workspace --release → 139 / 139 pass
Specific fixes:
- bridge: replace `len() == 0` with `is_empty()` (clippy::len_zero).
- llm: surface `MockBackend::config()` instead of dead-coding the field.
- claude-client: drop unused imports (futures::StreamExt, tokio::sync::mpsc,
tracing::{error,info}); allow dead `error_type` field used only for
serde deserialisation; derive Default for ClaudeModel via #[default].
- lsm + esn: rand 0.9 deprecation rename (`thread_rng` → `rng`,
`gen` → `random`). These were latent because the workspace didn't
compile before; pinning rand 0.9 surfaced the deprecation warnings,
which the CI lint gate treats as errors.
- neurophone-core: deduplicate accidental `#![forbid(unsafe_code)]`,
drop unused `Arc`/`Duration` imports, derive Default for SystemState,
remove `>= 0` checks on unsigned types (clippy::absurd_extreme_comparisons),
swap `vec!["..."]` for an array literal (clippy::useless_vec).
- claude-client integration tests: use `RangeInclusive::contains` instead
of manual `>=` / `<=` chain (clippy::manual_range_contains).
- All eight criterion benches: migrate to `std::hint::black_box`
(criterion::black_box was deprecated in criterion 0.6).
- sensors bench: don't pass a unit value to black_box.
- property test: derive iteration counter from enumerate() instead of
a parallel mutable variable (clippy::explicit_counter_loop).
- cargo fmt --all run; 24 files normalised (import order, trailing
commas in long groups, line breaks in nested formats).
https://claude.ai/code/session_012opuP3HehkjDkF1XQ8nFex
0 commit comments