Skip to content

Conversation

@nikitosikvn1
Copy link

Description

Replaces unsafe NonZeroU64::new_unchecked(1) with safe NonZeroU64::new(1).unwrap().

Changes

  • Remove unsafe code in favor of safe alternative
  • Follows Clippy recommendation: useless_nonzero_new_unchecked
  • No functional changes, only safety improvement

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.

1 participant