From db9e633d41b822d13087d7c7a689cc8edfe3d9c0 Mon Sep 17 00:00:00 2001 From: Julien Enoch Date: Mon, 2 Oct 2023 17:30:49 +0200 Subject: [PATCH] Make rustfmt happy --- zenoh-plugin-ros2dds/src/dds_types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zenoh-plugin-ros2dds/src/dds_types.rs b/zenoh-plugin-ros2dds/src/dds_types.rs index aa77716..4d07236 100644 --- a/zenoh-plugin-ros2dds/src/dds_types.rs +++ b/zenoh-plugin-ros2dds/src/dds_types.rs @@ -133,7 +133,7 @@ impl DDSRawSample { unsafe { slice::from_raw_parts( self.data.iov_base as *const u8, - self.data.iov_len.try_into().unwrap() + self.data.iov_len.try_into().unwrap(), ) } } @@ -148,7 +148,7 @@ impl DDSRawSample { } &slice::from_raw_parts( self.data.iov_base as *const u8, - self.data.iov_len.try_into().unwrap() + self.data.iov_len.try_into().unwrap(), )[4..] } }