Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Sep 29, 2023
1 parent bc3bbad commit 222da9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ impl From<u64> for Id {
}

// Not meant to be used directly
impl Into<NonZeroU128> for Id {
fn into(self) -> NonZeroU128 {
match &self.0 {
impl From<Id> for NonZeroU128 {
fn from(id: Id) -> NonZeroU128 {
match &id.0 {
Internal::Unique(id) => NonZeroU128::try_from(*id as u128).unwrap(),
Internal::Custom(id, _) => {
NonZeroU128::try_from(*id as u128).unwrap()
Expand Down

0 comments on commit 222da9a

Please sign in to comment.