simplify u64::a_deserialize
This commit is contained in:
parent
ef4cacd650
commit
03a809e92b
@ -38,8 +38,7 @@ impl Atomic for u64 {
|
|||||||
type AParseError = IntParseError;
|
type AParseError = IntParseError;
|
||||||
|
|
||||||
fn a_deserialize(inlining: impl Inlining) -> AParseResult<Self> {
|
fn a_deserialize(inlining: impl Inlining) -> AParseResult<Self> {
|
||||||
let (n, _) = inlining.iread_n_const::<8>(|slice| IntParseError::from(slice))?;
|
Self::a_ideserialize(inlining).seal()
|
||||||
Ok(u64::from_le_bytes(n))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn a_extend(self, tail: &[u8]) -> AParseResult<Self> {
|
fn a_extend(self, tail: &[u8]) -> AParseResult<Self> {
|
||||||
|
Loading…
Reference in New Issue
Block a user