Make the workspace clippy-clean and deny warnings in CI #37
Labels
No labels
Compat/Breaking
Crazy Idea
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
needs-info
needs-triage
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
OpenIndiana/ips#37
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Goal
cargo clippy --workspace --all-targets --all-features -- -D warningscurrently fails with ~270 findings inlibips(lib) and ~320 with tests. The Solstice CIlinuxjob therefore runs clippy report-only. Make the workspace clippy-clean and flip the CI step in.forgejo/workflows/ci.ymlto-- -D warnings.Breakdown (from a local run, rustc stable 2026-07)
result_large_err(theErr-variant returned from this function is very large)ImageError,RepositoryError, ...) soResult<T, E>stays small; alternatively#![allow(clippy::result_large_err)]at crate level with a justification if boxing hurts the diagnostic ergonomics. Decide once, apply everywhere.collapsible_ifcargo clippy --fixhandles most.field_reassign_with_defaultneedless_borrow,manual_*,derivable_impls,from_str_radix_10,new_without_default, ...)Acceptance
cargo clippy --workspace --all-targets --all-features --locked -- -D warningsexits 0 on Linux and illumos.cargo nextest run --workspacestill green.Do the mechanical lints in one commit (
cargo clippy --fix --allow-dirty, then review), and theresult_large_errdecision in a separate commit so it can be reviewed on its own.