simplify u64::a_deserialize

This commit is contained in:
AF 2023-06-30 23:01:33 +00:00
parent ef4cacd650
commit 03a809e92b

View File

@ -38,8 +38,7 @@ impl Atomic for u64 {
type AParseError = IntParseError;
fn a_deserialize(inlining: impl Inlining) -> AParseResult<Self> {
let (n, _) = inlining.iread_n_const::<8>(|slice| IntParseError::from(slice))?;
Ok(u64::from_le_bytes(n))
Self::a_ideserialize(inlining).seal()
}
fn a_extend(self, tail: &[u8]) -> AParseResult<Self> {