fmt
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
Rust/spacepackets/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-12-01 14:46:01 +01:00
parent 1f1aa68485
commit e355de3f10
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -338,12 +338,10 @@ impl<T: SegReqFromBytes> SegmentRequestIter<'_, T> {
return None; return None;
} }
let start_offset = let start_offset = T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
offset += size_of::<T>(); offset += size_of::<T>();
let end_offset = let end_offset = T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
Some((start_offset, end_offset)) Some((start_offset, end_offset))
} }
} }