Skip to content

Commit 805aabc

Browse files
committed
chore: format code
1 parent faf45c7 commit 805aabc

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ feature! {
145145
#![feature = "mount"]
146146
pub mod mount;
147147
}
148-
#[cfg(all(any(freebsdlike, target_os = "linux", target_os = "netbsd"), not(target_env = "ohos")))]
148+
#[cfg(all(
149+
any(freebsdlike, target_os = "linux", target_os = "netbsd"),
150+
not(target_env = "ohos")
151+
))]
149152
feature! {
150153
#![feature = "mqueue"]
151154
pub mod mqueue;

src/sys/ioctl/linux.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
use cfg_if::cfg_if;
22

33
/// The datatype used for the ioctl number
4-
#[cfg(any(target_os = "android", target_os = "fuchsia", target_env = "musl", target_env = "ohos"))]
4+
#[cfg(any(
5+
target_os = "android",
6+
target_os = "fuchsia",
7+
target_env = "musl",
8+
target_env = "ohos"
9+
))]
510
#[doc(hidden)]
611
pub type ioctl_num_type = ::libc::c_int;
712
#[cfg(not(any(

src/sys/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
//! Mostly platform-specific functionality
22
#[cfg(any(
33
freebsdlike,
4-
all(target_os = "linux", not(any(target_env = "uclibc", target_env = "ohos"))),
4+
all(
5+
target_os = "linux",
6+
not(any(target_env = "uclibc", target_env = "ohos"))
7+
),
58
apple_targets,
69
target_os = "netbsd"
710
))]

test/sys/test_pthread.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ fn test_pthread_self() {
77
assert!(!tid.is_null());
88
}
99

10-
#[cfg(not(any(target_env = "musl", target_os = "redox", target_env = "ohos")))]
10+
#[cfg(not(any(
11+
target_env = "musl",
12+
target_os = "redox",
13+
target_env = "ohos"
14+
)))]
1115
#[test]
1216
fn test_pthread_self() {
1317
let tid = pthread_self();

0 commit comments

Comments
 (0)