Skip to content

chore(lint): enable clippy::todo - #17

Merged
tupe12334 merged 1 commit into
mainfrom
clippy/enable-todo
Jul 1, 2026
Merged

tupe12334 merged 1 commit into
mainfrom
clippy/enable-todo

Conversation

@tupe12334

Copy link
Copy Markdown
Member

What

Enables clippy::todo as deny in lib/Cargo.toml, alongside the existing no-panic restriction lints (unwrap_used, expect_used, panic, unreachable, indexing_slicing, string_slice).

Why

todo!() is a temporary development placeholder that panics at runtime if it ships accidentally. This was the last common panic-causing macro not yet covered by the crate's no-panic lint family.

Verification

  • cargo clippy --all-targets --all-features — clean, no violations (no existing todo!() usage in lib/src)
  • cargo build — passes
  • cargo test — 63 + 4 tests pass

Closes #16

cc @tupe12334


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

Closes the last common panic-causing macro not yet covered by the
existing no-panic lint family (unwrap_used, expect_used, panic,
unreachable, indexing_slicing, string_slice).
@tupe12334
tupe12334 merged commit 0b46286 into main Jul 1, 2026
2 checks passed
@tupe12334
tupe12334 deleted the clippy/enable-todo branch July 1, 2026 01:12
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::todo lint

1 participant