From bf50acbc09fe1acd627b8d4879e26b07d89e31e2 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 20 Dec 2016 21:29:42 -0700 Subject: [PATCH] Fix tidy --- src/libstd/sys/redox/syscall/data.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libstd/sys/redox/syscall/data.rs b/src/libstd/sys/redox/syscall/data.rs index 11f007c52ab..ac3946672a3 100644 --- a/src/libstd/sys/redox/syscall/data.rs +++ b/src/libstd/sys/redox/syscall/data.rs @@ -35,7 +35,8 @@ impl Deref for Stat { type Target = [u8]; fn deref(&self) -> &[u8] { unsafe { - slice::from_raw_parts(self as *const Stat as *const u8, mem::size_of::()) as &[u8] + slice::from_raw_parts(self as *const Stat as *const u8, + mem::size_of::()) as &[u8] } } } @@ -62,7 +63,8 @@ impl Deref for StatVfs { type Target = [u8]; fn deref(&self) -> &[u8] { unsafe { - slice::from_raw_parts(self as *const StatVfs as *const u8, mem::size_of::()) as &[u8] + slice::from_raw_parts(self as *const StatVfs as *const u8, + mem::size_of::()) as &[u8] } } } @@ -70,7 +72,8 @@ fn deref(&self) -> &[u8] { impl DerefMut for StatVfs { fn deref_mut(&mut self) -> &mut [u8] { unsafe { - slice::from_raw_parts_mut(self as *mut StatVfs as *mut u8, mem::size_of::()) as &mut [u8] + slice::from_raw_parts_mut(self as *mut StatVfs as *mut u8, + mem::size_of::()) as &mut [u8] } } }