]> git.lizzy.rs Git - rust.git/commitdiff
Fix coding style.
authorColin Finck <colin.finck@rwth-aachen.de>
Tue, 31 Jul 2018 07:49:10 +0000 (09:49 +0200)
committerColin Finck <colin.finck@rwth-aachen.de>
Tue, 31 Jul 2018 07:49:10 +0000 (09:49 +0200)
src/liballoc_system/lib.rs
src/libstd/sys/unix/condvar.rs

index 39768301b9d2c5ffb25a3b54754ad5e338893759..8e30b0d5d5a17c23371e0945fbaf3872754afa27 100644 (file)
@@ -174,7 +174,10 @@ unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut
         }
     }
 
-    #[cfg(any(target_os = "android", target_os = "hermit", target_os = "redox", target_os = "solaris"))]
+    #[cfg(any(target_os = "android",
+              target_os = "hermit",
+              target_os = "redox",
+              target_os = "solaris"))]
     #[inline]
     unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
         // On android we currently target API level 9 which unfortunately
@@ -197,7 +200,10 @@ unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
         libc::memalign(layout.align(), layout.size()) as *mut u8
     }
 
-    #[cfg(not(any(target_os = "android", target_os = "hermit", target_os = "redox", target_os = "solaris")))]
+    #[cfg(not(any(target_os = "android",
+                  target_os = "hermit",
+                  target_os = "redox",
+                  target_os = "solaris")))]
     #[inline]
     unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
         let mut out = ptr::null_mut();
index b3ac9e5c140f4392db1f27d99e8043883dd939c6..2007da7b1f6bec59b502a35fcf4cd2b80c9fbdf2 100644 (file)
@@ -85,7 +85,10 @@ pub unsafe fn wait(&self, mutex: &Mutex) {
     // where we configure condition variable to use monotonic clock (instead of
     // default system clock). This approach avoids all problems that result
     // from changes made to the system time.
-    #[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "android", target_os = "hermit")))]
+    #[cfg(not(any(target_os = "macos",
+                  target_os = "ios",
+                  target_os = "android",
+                  target_os = "hermit")))]
     pub unsafe fn wait_timeout(&self, mutex: &Mutex, dur: Duration) -> bool {
         use mem;