Skip to content

chore(lint): enable clippy::map_err_ignore#21

Open
tupe12334 wants to merge 1 commit into
mainfrom
clippy/enable-map_err_ignore
Open

chore(lint): enable clippy::map_err_ignore#21
tupe12334 wants to merge 1 commit into
mainfrom
clippy/enable-map_err_ignore

Conversation

@tupe12334

Copy link
Copy Markdown
Member

What

Enables clippy::map_err_ignore as deny in lib/Cargo.toml. This restriction-group lint flags .map_err(|_| ...), which discards the source error instead of preserving it.

Why

centy-installer handles network requests, checksum verification, and archive extraction — failure-prone operations where the original error is exactly what's needed to debug a broken install. This lint stops future code from silently dropping that context.

Verification

  • cargo clippy --all-targets — clean, zero violations (no existing .map_err(|_| ...) call sites in lib/src)
  • cargo build — clean
  • cargo test — 63 unit tests + 4 e2e tests pass

Closes #20


This pull request was opened by the Clippy lint improvements → issue + PR (Rust repos) → Slack routine of moadim.

Prevents .map_err(|_| ...) from silently discarding the source error
in network, checksum, and archive-extraction paths.

Closes #20
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.

Enable clippy::map_err_ignore lint

1 participant