Skip to content

chore: restore make lint (rustfmt + clippy) on main#491

Merged
cryptskii merged 1 commit into
mainfrom
chore/restore-green-ci-fmt-clippy
Jun 10, 2026
Merged

chore: restore make lint (rustfmt + clippy) on main#491
cryptskii merged 1 commit into
mainfrom
chore/restore-green-ci-fmt-clippy

Conversation

@cryptskii

Copy link
Copy Markdown
Collaborator

Why

main's Rust CI job has been red since 2026-06-05. Root cause: the #488 recovery/device-admission stack merged with rustfmt drift (32 files) and clippy violations. These went unreported because make lint runs cargo fmt --all -- --check first and short-circuits before cargo clippy ever executes. Every open PR inherited this failure.

What

  • cargo fmt --all — reformat 32 drifted files (whitespace/line-wrapping only).
  • Fix clippy -D warnings errors surfaced once fmt passed:
    • unnecessary to_vec (recovery/*), unneeded return (sdk lib + bitcoin_tap_sdk), manual is_multiple_of (chain_segment)
    • #![allow(clippy::disallowed_methods)] on the recovery_anchor test module (matches existing test convention for unwrap/expect)

Verification

Locally green:

  • cargo fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings
  • cargo build --locked --workspace --all-features

The #488 recovery/device-admission stack landed with rustfmt drift and
clippy violations that CI never reported because `make lint` short-circuits
at the `cargo fmt --check` step before clippy runs, so the Rust job has been
red since 2026-06-05.

- cargo fmt --all across 32 drifted files
- fix clippy errors: unnecessary `to_vec`, unneeded `return`, manual
  `is_multiple_of`, and allow `disallowed_methods` in the recovery_anchor
  test module (matches the existing test convention)

Verified locally: `cargo fmt --all -- --check`, `cargo clippy --all-targets
-- -D warnings`, and `cargo build --locked --workspace --all-features` all pass.
@cryptskii cryptskii merged commit 4253d31 into main Jun 10, 2026
9 checks passed
@cryptskii cryptskii deleted the chore/restore-green-ci-fmt-clippy branch June 10, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant