Skip to content

refactor: replace unreachable patterns with unwrap_unchecked#693

Merged
Amanieu merged 1 commit intorust-lang:masterfrom
xtqqczze:unwrap_unchecked
Feb 27, 2026
Merged

refactor: replace unreachable patterns with unwrap_unchecked#693
Amanieu merged 1 commit intorust-lang:masterfrom
xtqqczze:unwrap_unchecked

Conversation

@xtqqczze
Copy link
Contributor

@xtqqczze xtqqczze commented Feb 21, 2026

Additionally, this PR refactors several unsafe blocks so that each unsafe operation is isolated in its own block, in line with the clippy::multiple_unsafe_ops_per_block lint.

Review with whitespace hidden

@xtqqczze
Copy link
Contributor Author

rust-clippy issue: rust-lang/rust-clippy#16601

@Amanieu Amanieu added this pull request to the merge queue Feb 27, 2026
Merged via the queue into rust-lang:master with commit 376aa8e Feb 27, 2026
25 checks passed
@xtqqczze xtqqczze deleted the unwrap_unchecked branch February 27, 2026 20:42
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.

2 participants