Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
richerfu committed Jan 22, 2025
1 parent faf45c7 commit 805aabc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ feature! {
#![feature = "mount"]
pub mod mount;
}
#[cfg(all(any(freebsdlike, target_os = "linux", target_os = "netbsd"), not(target_env = "ohos")))]
#[cfg(all(
any(freebsdlike, target_os = "linux", target_os = "netbsd"),
not(target_env = "ohos")
))]
feature! {
#![feature = "mqueue"]
pub mod mqueue;
Expand Down
7 changes: 6 additions & 1 deletion src/sys/ioctl/linux.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
use cfg_if::cfg_if;

/// The datatype used for the ioctl number
#[cfg(any(target_os = "android", target_os = "fuchsia", target_env = "musl", target_env = "ohos"))]
#[cfg(any(
target_os = "android",
target_os = "fuchsia",
target_env = "musl",
target_env = "ohos"
))]
#[doc(hidden)]
pub type ioctl_num_type = ::libc::c_int;
#[cfg(not(any(
Expand Down
5 changes: 4 additions & 1 deletion src/sys/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
//! Mostly platform-specific functionality
#[cfg(any(
freebsdlike,
all(target_os = "linux", not(any(target_env = "uclibc", target_env = "ohos"))),
all(
target_os = "linux",
not(any(target_env = "uclibc", target_env = "ohos"))
),
apple_targets,
target_os = "netbsd"
))]
Expand Down
6 changes: 5 additions & 1 deletion test/sys/test_pthread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ fn test_pthread_self() {
assert!(!tid.is_null());
}

#[cfg(not(any(target_env = "musl", target_os = "redox", target_env = "ohos")))]
#[cfg(not(any(
target_env = "musl",
target_os = "redox",
target_env = "ohos"
)))]
#[test]
fn test_pthread_self() {
let tid = pthread_self();
Expand Down

0 comments on commit 805aabc

Please sign in to comment.