Skip to content

chore(lint): enable clippy::dbg_macro - #15

Merged
tupe12334 merged 1 commit into
mainfrom
clippy/enable-dbg_macro
Jun 30, 2026
Merged

tupe12334 merged 1 commit into
mainfrom
clippy/enable-dbg_macro

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Summary

  • Enables clippy::dbg_macro = "deny" in lib/Cargo.toml's [lints.clippy] table, extending this repo's existing panic/hygiene-focused restriction lints (unwrap_used, expect_used, panic, unreachable, indexing_slicing, string_slice, allow_attributes_without_reason).
  • Catches leftover dbg!(...) debugging macros before they ship — dbg! prints file/line + value to stderr, which is meant for local debugging only and is easy to leave behind accidentally.
  • No existing dbg! usages in lib/src, so this is a no-op today and only guards against regressions.

Closes #14

Test plan

  • cargo clippy --all-targets passes clean (no new violations)
  • cargo build succeeds
  • cargo test — 63 + 4 tests pass

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

@tupe12334

Copy link
Copy Markdown
Member Author

@tupe12334 ready for review when you have a chance.

@tupe12334
tupe12334 merged commit 1de0e36 into main Jun 30, 2026
2 checks passed
@tupe12334
tupe12334 deleted the clippy/enable-dbg_macro branch June 30, 2026 21:16
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::dbg_macro lint

1 participant