Skip to content

chore(lint): enable clippy::unreachable lint - #57

Merged
tupe12334 merged 1 commit into
mainfrom
fix/issue-41-clippy-unreachable
Jul 2, 2026
Merged

tupe12334 merged 1 commit into
mainfrom
fix/issue-41-clippy-unreachable

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Summary

Enables clippy::unreachable at deny level, forbidding the unreachable!() macro.

mdstore is a storage engine that already denies every other panicking escape hatch (panic, todo, unwrap_used, expect_used, panic_in_result_fn, unwrap_in_result). unreachable!() was the one remaining macro not yet covered — this closes that gap so unexpected states must surface as recoverable Err values instead of aborting the process.

The codebase has zero uses of unreachable!() today, so this is a zero-violation, forward-looking guardrail.

Closes #41


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

@tupe12334
tupe12334 merged commit 2a7bfe5 into main Jul 2, 2026
6 checks passed
@tupe12334
tupe12334 deleted the fix/issue-41-clippy-unreachable branch July 2, 2026 01:04
tupe12334 added a commit that referenced this pull request Jul 16, 2026
Resolve Cargo.toml conflict: the unreachable=deny lint from this PR
was independently added to main via #57 in the interim. Dedupe to a
single entry (keeping main's wording) and keep main's map_err_ignore
entry that landed alongside it.
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::unreachable lint

1 participant