fix: silence clippy warnings denied as errors in CI #8

Merged
David merged 1 commit from fix/clippy-warnings into main 2026-05-07 01:49:55 +02:00
Owner

The check workflow runs cargo clippy --workspace --all-targets -- --deny warnings, so any new lint promotes to a failure. This pass clears the six lints that fired against main and an unrelated arity mismatch in the handshake integration test that surfaced once clippy got past the lib build.

  • core.rs: drop the inner #![cfg(feature = "meshcore")] (the parent module is already feature-gated in lib.rs, so the duplicate is what triggered clippy::duplicated_attributes).
  • host/tunnel.rs: dedent the doc list under Per usage bitmap: from 5 spaces to 3, and drop a String -> String .into() on a WsMessage::Text payload.
  • host/tcpforward.rs and host/wsproxy.rs: pair each test-only len() with an is_empty() so clippy::len_without_is_empty is satisfied.
  • host/timestatus.rs: rewrite the test-only is_some() { ... unwrap() } pattern as if let Some(..).
  • tests/handshake.rs: pass tmp.path() as the new data_dir argument to net::run_connection, matching the signature it now has on main.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

The check workflow runs `cargo clippy --workspace --all-targets -- --deny warnings`, so any new lint promotes to a failure. This pass clears the six lints that fired against `main` and an unrelated arity mismatch in the handshake integration test that surfaced once clippy got past the lib build. - core.rs: drop the inner `#![cfg(feature = "meshcore")]` (the parent module is already feature-gated in lib.rs, so the duplicate is what triggered `clippy::duplicated_attributes`). - host/tunnel.rs: dedent the doc list under `Per usage bitmap:` from 5 spaces to 3, and drop a `String -> String` `.into()` on a `WsMessage::Text` payload. - host/tcpforward.rs and host/wsproxy.rs: pair each test-only `len()` with an `is_empty()` so `clippy::len_without_is_empty` is satisfied. - host/timestatus.rs: rewrite the test-only `is_some() { ... unwrap() }` pattern as `if let Some(..)`. - tests/handshake.rs: pass `tmp.path()` as the new `data_dir` argument to `net::run_connection`, matching the signature it now has on `main`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fix: silence clippy warnings denied as errors in CI
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 1m15s
9c77181f3b
The check workflow runs `cargo clippy --workspace --all-targets -- --deny warnings`, so any new lint promotes to a failure. This pass clears the six lints that fired against `main` and an unrelated arity mismatch in the handshake integration test that surfaced once clippy got past the lib build.

- core.rs: drop the inner `#![cfg(feature = "meshcore")]` (the parent module is already feature-gated in lib.rs, so the duplicate is what triggered `clippy::duplicated_attributes`).
- host/tunnel.rs: dedent the doc list under `Per usage bitmap:` from 5 spaces to 3, and drop a `String -> String` `.into()` on a `WsMessage::Text` payload.
- host/tcpforward.rs and host/wsproxy.rs: pair each test-only `len()` with an `is_empty()` so `clippy::len_without_is_empty` is satisfied.
- host/timestatus.rs: rewrite the test-only `is_some() { ... unwrap() }` pattern as `if let Some(..)`.
- tests/handshake.rs: pass `tmp.path()` as the new `data_dir` argument to `net::run_connection`, matching the signature it now has on `main`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
David merged commit 0c232abc4b into main 2026-05-07 01:49:55 +02:00
David deleted branch fix/clippy-warnings 2026-05-07 01:49:55 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/vervain-agent!8
No description provided.