From 127e08c57a3083d5f4f1ae9c341b9915b847f5dc Mon Sep 17 00:00:00 2001 From: Julian Schmid Date: Sun, 5 Nov 2023 10:52:53 +0100 Subject: [PATCH] Re-applied rust fmt --- src/someip_msg_slice.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/someip_msg_slice.rs b/src/someip_msg_slice.rs index 936d7fb..2168a0e 100644 --- a/src/someip_msg_slice.rs +++ b/src/someip_msg_slice.rs @@ -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