Skip to content

Commit a849152

Browse files
committed
fmt
1 parent 8c317d8 commit a849152

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/err.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ pub(crate) fn set_errno(value: i32) {
4444
unsafe {
4545
*_errno() = value;
4646
}
47-
#[cfg(all(unix, not(any(target_os = "linux", target_os = "android", target_os = "macos"))))]
47+
#[cfg(all(
48+
unix,
49+
not(any(target_os = "linux", target_os = "android", target_os = "macos"))
50+
))]
4851
unsafe {
4952
// FreeBSD, NetBSD, OpenBSD, etc. use __error()
5053
*libc::__error() = value;
@@ -73,7 +76,10 @@ pub(crate) fn get_errno() -> i32 {
7376
unsafe {
7477
*_errno()
7578
}
76-
#[cfg(all(unix, not(any(target_os = "linux", target_os = "android", target_os = "macos"))))]
79+
#[cfg(all(
80+
unix,
81+
not(any(target_os = "linux", target_os = "android", target_os = "macos"))
82+
))]
7783
unsafe {
7884
// FreeBSD, NetBSD, OpenBSD, etc. use __error()
7985
*libc::__error()

0 commit comments

Comments
 (0)