fmt
This commit is contained in:
parent
1f1aa68485
commit
e355de3f10
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user