fix(clippy): clear remaining -D warnings lints in zeno-agent #7
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hex/zeno-rmm!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ci-clippy-zeno-agent-followup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follow-up to #6 (the combined crashlog/dead-code PR). #6 was blocked by 14 pre-existing clippy errors in
zeno-agentthat exist onmainand have been failing CI for a while. This PR resolves them with mechanical fixes — no refactors, no API changes.Background
The 14 errors only appear on the Windows CI bin build because the
#[cfg(target_os = "windows")]arms ofzeno-agentare exercised on the runner. On the Linux dev box some are hidden by cfg-gating; on Windows they show up. The earliere468c64"resolve 103 clippy errors" commit cleared most of them but left these 14.Errors fixed
manual_clamprelay.rs:130,131.min().max()→.clamp()needless_updatewebrtc/mod.rs:72..Default::default()needless_returnupdate.rs:190return(last expression)missing_const_for_thread_localplatform/windows.rs:1096const { Cell::new(false) }initializerunused_imports(test)run.rs:990use anyhow::Context;from test moduleunused_imports(re-export)service.rs:267#[allow(unused_imports)]on thepub use(no in-crate callers)dead_code× 6codec.rs:115,platform/mod.rs:46,main.rs:302,update.rs:17,remote_helper.rs:46,60,96#[allow(dead_code)]on Windows-only / future-use itemstoo_many_arguments× 4relay.rs:33(8/7),remote_helper.rs:887(8/7),run.rs:248(9/7),wcstream.rs:35(8/7)#[allow(clippy::too_many_arguments)]— refactor to a config struct is a separate changeLocal verification
cargo fmt --all -- --check→ cleancargo check -p zeno-agent→ okcargo clippy --workspace --all-targets -- -D warnings→ nozeno-agenterrors remainThe only remaining errors on this Linux dev box are in
zeno-installerandzeno-serverbin targets — these are env-specific to Linux because both crates are Windows-only / thebintest build exposes public API as dead on Linux. The Windows CI does not see them (verified in the PR #6 clippy log: zeno-installer and zeno-server both compiled cleanly on the Windows runner).Files
11 files, +17/-6 lines.
Depends on #6 (the crashlog + dead-code PR) being merged first; the cross-dependency was the original reason for #6.