[hygiene] cargo clippy --workspace -- -D warnings reports ~99 warnings #22
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_biz#22
Loading…
Add table
Add a link
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?
Summary
cargo clippy --workspace --all-targets -- -D warningsreports ~99 warnings on hero_biz development as of 2026-05-04 (commitec1047b). CI doesn't gate on clippy today (onlycargo check+cargo buildinbuild.yaml), so drift accumulates silently.This is a workspace-wide hygiene issue, not blocking the
--from-cirollout (handled in #?). Filed as a separate concern so the rollout PR stays focused.Breakdown
Suggested approach
cargo clippy --fix --workspace --all-targets --allow-dirty→ resolves most needless_borrow / collapsible_if / format-arg fixes mechanically (probably 60-80 of the 99).cargo fmt --allafter, since clippy --fix sometimes un-formats.#[allow]with rationale.clippystep tobuild.yamlso future drift is caught on push.Estimated effort: ~1-2h.
Refs
--from-cirollout (separate)Out of scope
Pure hygiene + add a CI gate.
Signed-off-by: mik-tf
Fixed in
eb03045(Rust 2024 closure types, clippy fixes) and325d2c6(rustfmt pass).cargo clippy --workspace --all-targets -- -D warningsnow passes with zero warnings. CI gate added tobuild.yamlas a dedicated Clippy step.