diff --git a/src/rstd/atomic/boolean.rs b/src/rstd/atomic/boolean.rs index 597513a..5e15136 100644 --- a/src/rstd/atomic/boolean.rs +++ b/src/rstd/atomic/boolean.rs @@ -45,12 +45,7 @@ impl Atomic for bool { type AParseError = BooleanParseError; fn a_deserialize(inlining: impl Inlining) -> AParseResult { - let (byte, _) = inlining.iread_n_const::<1>(|slice| BooleanParseError::from(slice))?; - match byte[0] { - 0 => Ok(false), - 1 => Ok(true), - value => Err(BooleanParseError::OutOfBounds(value)), - } + Self::a_ideserialize(inlining).seal() } fn a_extend(self, tail: &[u8]) -> AParseResult {