Skip to content

Commit

Permalink
1. Fixing a build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
denisandroid committed Jul 6, 2024
1 parent 054aa37 commit 8afcabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl StateManuallyDropData {
/// (important, the byte is checked anyway, but only in a debug build)
#[inline]
pub unsafe fn unchecked_from(a: u8) -> Self {
extended_debug_assertions!(Self::is_valid_byte(a), true);
extended_debug_assertions!(Self::from(a).is_some(), true);

Self::__unchecked_from(a)
}
Expand Down

0 comments on commit 8afcabd

Please sign in to comment.