Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Dec 1, 2023
1 parent 1f1aa68 commit e355de3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cfdp/pdu/nak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,10 @@ impl<T: SegReqFromBytes> SegmentRequestIter<'_, T> {
return None;
}

let start_offset =
T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
let start_offset = T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
offset += size_of::<T>();

let end_offset =
T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
let end_offset = T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
Some((start_offset, end_offset))
}
}
Expand Down

0 comments on commit e355de3

Please sign in to comment.