Skip to content

Commit

Permalink
Re-applied rust fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianSchmid committed Nov 5, 2023
1 parent 4949b2f commit 127e08c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/someip_msg_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,12 @@ impl<'a> SomeipMsgSlice<'a> {
// Safe as it is checked in SomeipHeaderSlice::from_slice that the
// slice has at least SOMEIP_HEADER_LENGTH + TP_HEADER_LENGTH len
// if the tp flag is set.
unsafe { core::slice::from_raw_parts(self.slice.as_ptr().add(OFFSET), self.slice.len() - OFFSET) }
unsafe {
core::slice::from_raw_parts(
self.slice.as_ptr().add(OFFSET),
self.slice.len() - OFFSET,
)
}
} else {
// SAFETY:
// Safe as it is checked in SomeipHeaderSlice::from_slice that the
Expand Down

0 comments on commit 127e08c

Please sign in to comment.