Skip to content

Commit

Permalink
.ok().unwrap()
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
ggwpez committed Jun 19, 2024
1 parent 5fd19eb commit 85cfcc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serialize/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ impl<T: CanonicalDeserialize, const N: usize> CanonicalDeserialize for [T; N] {
if let Validate::Yes = validate {
T::batch_check(array.iter())?
}
Ok(array.into_inner().unwrap_or_else(|_| unreachable!()))
Ok(array.into_inner().ok().unwrap())
}
}

Expand Down

0 comments on commit 85cfcc8

Please sign in to comment.