Skip to content

Commit 130641f

Browse files
committed
Fix code style
1 parent 49b78bb commit 130641f

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

library/std/src/sys/pal/unix/fs.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,12 @@ impl FileAttr {
541541
SystemTime::new(self.stat.st_atim.tv_sec as i64, self.stat.st_atim.tv_nsec as i64)
542542
}
543543

544-
#[cfg(any(target_os = "freebsd", target_os = "openbsd", target_vendor = "apple", target_os = "cygwin"))]
544+
#[cfg(any(
545+
target_os = "freebsd",
546+
target_os = "openbsd",
547+
target_vendor = "apple",
548+
target_os = "cygwin",
549+
))]
545550
pub fn created(&self) -> io::Result<SystemTime> {
546551
SystemTime::new(self.stat.st_birthtime as i64, self.stat.st_birthtime_nsec as i64)
547552
}

library/std/src/sys/pal/unix/stack_overflow.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ mod imp {
372372
// this way someone on any unix-y OS can check that all these compile
373373
if cfg!(all(target_os = "linux", not(target_env = "musl"))) {
374374
install_main_guard_linux(page_size)
375-
} else if cfg!(any(all(target_os = "linux", target_env = "musl"), target_os = "cygwin")) {
375+
} else if cfg!(any(all(target_os = "linux", target_env = "musl"), target_os = "cygwin"))
376+
{
376377
install_main_guard_linux_musl(page_size)
377378
} else if cfg!(target_os = "freebsd") {
378379
install_main_guard_freebsd(page_size)

library/std/src/sys/random/linux.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,13 @@ fn getrandom(mut bytes: &mut [u8], insecure: bool) {
9595
let flags = if insecure {
9696
if GRND_INSECURE_AVAILABLE.load(Relaxed) {
9797
#[cfg(target_os = "cygwin")]
98-
{ libc::GRND_NONBLOCK }
98+
{
99+
libc::GRND_NONBLOCK
100+
}
99101
#[cfg(not(target_os = "cygwin"))]
100-
{ libc::GRND_INSECURE }
102+
{
103+
libc::GRND_INSECURE
104+
}
101105
} else {
102106
libc::GRND_NONBLOCK
103107
}

0 commit comments

Comments
 (0)