Repository navigation
chore(lint): enable clippy::todo - #17
Merged
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Enables
clippy::todoasdenyinlib/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 existingtodo!()usage inlib/src)cargo build— passescargo test— 63 + 4 tests passCloses #16
cc @tupe12334
This pull request was opened by the Clippy lint improvements → issue + PR (Rust repos) → Slack routine of moadim.