zeroclaw/tests
FlashFamily 931cf40636 fix: resolve all clippy warnings across codebase
Fix all clippy errors reported by `cargo clippy --all-targets -- -D warnings`
on Rust 1.93, covering both the original codebase and upstream dev changes.

Changes by category:
- format!() appended to String → write!/writeln! (telegram, discord)
- Redundant field names, unnecessary boolean not (agent/loop_)
- Long numeric literals (wati, nextcloud, telegram, gemini)
- Wildcard match on single variant (security/leak_detector)
- Derivable Default impls (config/schema)
- &Option<T> → Option<&T> or allow (config/schema, config/mod, gateway/api)
- Identical match arms merged (gateway/ws, observability, providers, main, onboard)
- Cast truncation allowed with rationale (discord, lark)
- Unnecessary borrows/returns removed (multiple files)
- Unused imports removed (channels/mod, peripherals/mod, tests)
- MSRV-gated APIs allowed locally (memory/hygiene, tools/shell, tools/screenshot)
- Unnecessary .get().is_none() → !contains_key() (gemini)
- Explicit iteration → reference loop (gateway/api)
- Test-only: useless vec!, field_reassign_with_default, doc indentation

Validated: cargo fmt, cargo clippy --all-targets -- -D warnings, cargo test
Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 49e90cf3e4)
2026-02-25 17:50:56 +08:00
..
fixtures fix(tools): file_read binary file support — PDF extraction + lossy fallback 2026-02-21 13:03:13 +08:00
agent_e2e.rs supersede: file-replay changes from #1639 2026-02-25 02:18:16 +00:00
agent_loop_robustness.rs fix(provider): preserve reasoning_content in tool-call conversation history 2026-02-22 17:40:48 +08:00
channel_routing.rs fix(channels): interrupt in-flight telegram requests on newer sender messages 2026-02-20 01:54:07 +08:00
config_persistence.rs fix: resolve all clippy warnings across codebase 2026-02-25 17:50:56 +08:00
config_schema.rs fix: resolve all clippy warnings across codebase 2026-02-25 17:50:56 +08:00
dockerignore_test.rs chore: Remove blocking read strings 2026-02-19 14:52:29 +08:00
gemini_fallback_oauth_refresh.rs fix: resolve all clippy warnings across codebase 2026-02-25 17:50:56 +08:00
hooks_integration.rs chore(hooks): fix formatting and clippy warnings 2026-02-21 13:34:09 +08:00
memory_comparison.rs feat(memory): add session_id isolation to Memory trait (#530) 2026-02-17 07:44:05 -05:00
memory_restart.rs fix(channels): interrupt in-flight telegram requests on newer sender messages 2026-02-20 01:54:07 +08:00
openai_codex_vision_e2e.rs fix: resolve all clippy warnings across codebase 2026-02-25 17:50:56 +08:00
otel_dependency_feature_regression.rs fix(observability): prevent otel reactor panic in non-tokio contexts 2026-02-20 16:07:50 +08:00
provider_resolution.rs chore(fmt): align formatting after main rebase 2026-02-21 14:54:19 +08:00
provider_schema.rs fix: resolve all clippy warnings across codebase 2026-02-25 17:50:56 +08:00
reply_target_field_regression.rs fix(channels): enforce reply_target naming consistency 2026-02-18 19:56:31 +08:00
telegram_attachment_fallback.rs fix(telegram): fall back to text link when media-by-URL fails 2026-02-21 12:34:33 +08:00
whatsapp_webhook_security.rs fix(memory): prevent autosave key collisions across runtime flows 2026-02-15 22:55:52 -05:00