Skip to content

Commit

Permalink
Use NonZeroU16 in move
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiaha committed Nov 28, 2024
1 parent c2331b5 commit c3fa0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moov.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl Move {

impl From<MoveInt> for Move {
fn from(m: MoveInt) -> Self {
Self(NonZero::new(m).expect("MoveInt is zero."))
Self(NonZeroU16::new(m).expect("MoveInt is zero."))
}
}

Expand Down

0 comments on commit c3fa0b9

Please sign in to comment.