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 8afcabd commit 260f295
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::from(a).is_some(), true);
extended_debug_assertions!(Self::validate_with_fns(a, || true, || false), true);

Self::__unchecked_from(a)
}
Expand Down

0 comments on commit 260f295

Please sign in to comment.