Skip to content

chore(lint): enable clippy::panic_in_result_fn#99

Merged
tupe12334 merged 1 commit into
mainfrom
fix/issue-95-clippy-panic-in-result-fn
Jul 2, 2026
Merged

chore(lint): enable clippy::panic_in_result_fn#99
tupe12334 merged 1 commit into
mainfrom
fix/issue-95-clippy-panic-in-result-fn

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Summary

  • Enable clippy::panic_in_result_fn (restriction) in Cargo.toml's [lints.clippy] table, following the same style/comment convention as the existing entries.
  • No source changes needed — the crate already has zero violations of this lint.

Test plan

  • cargo build --all-targets — passes
  • cargo clippy --all-targets --all-features -- -D warnings — passes, no warnings
  • cargo test — 22 unit tests + 6 snapshot tests pass
  • cargo fmt --check — passes

Closes #95


This pull request was opened by the Open issues → fix PRs (owned repos + my orgs) routine of moadim. @tupe12334

Denies panic!/todo!/unimplemented!/unreachable! at the top level of
any Result/Option-returning function, so failures must propagate via
Err(_)/None instead of aborting the process. Zero existing violations.

Closes #95
@tupe12334 tupe12334 merged commit bd7abbb into main Jul 2, 2026
1 check passed
@tupe12334 tupe12334 deleted the fix/issue-95-clippy-panic-in-result-fn branch July 2, 2026 21:11
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::panic_in_result_fn lint

1 participant