Skip to content

Commit 4ad4ad0

Browse files
committed
Fix coding style.
1 parent e50f4ee commit 4ad4ad0

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/liballoc_system/lib.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ mod platform {
174174
}
175175
}
176176

177-
#[cfg(any(target_os = "android", target_os = "hermit", target_os = "redox", target_os = "solaris"))]
177+
#[cfg(any(target_os = "android",
178+
target_os = "hermit",
179+
target_os = "redox",
180+
target_os = "solaris"))]
178181
#[inline]
179182
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
180183
// On android we currently target API level 9 which unfortunately
@@ -197,7 +200,10 @@ mod platform {
197200
libc::memalign(layout.align(), layout.size()) as *mut u8
198201
}
199202

200-
#[cfg(not(any(target_os = "android", target_os = "hermit", target_os = "redox", target_os = "solaris")))]
203+
#[cfg(not(any(target_os = "android",
204+
target_os = "hermit",
205+
target_os = "redox",
206+
target_os = "solaris")))]
201207
#[inline]
202208
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
203209
let mut out = ptr::null_mut();

src/libstd/sys/unix/condvar.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ impl Condvar {
8585
// where we configure condition variable to use monotonic clock (instead of
8686
// default system clock). This approach avoids all problems that result
8787
// from changes made to the system time.
88-
#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "android", target_os = "hermit")))]
88+
#[cfg(not(any(target_os = "macos",
89+
target_os = "ios",
90+
target_os = "android",
91+
target_os = "hermit")))]
8992
pub unsafe fn wait_timeout(&self, mutex: &Mutex, dur: Duration) -> bool {
9093
use mem;
9194

0 commit comments

Comments
 (0)