Skip to content

Commit 8ae7893

Browse files
committed
Run rusfmt on src/sys/aio.rs
1 parent a6b4af7 commit 8ae7893

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/sys/aio.rs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ impl<'a> AioFsync<'a> {
456456
/// * `fd`: File descriptor to sync.
457457
/// * `mode`: Whether to sync file metadata too, or just data.
458458
/// * `prio`: If POSIX Prioritized IO is supported, then the
459-
/// operation will be prioritized at the process's priority level minus
459+
/// operation will be prioritized at the process's priority level minus
460460
/// `prio`.
461461
/// * `sigev_notify`: Determines how you will be notified of event completion.
462462
pub fn new(
@@ -1141,17 +1141,29 @@ pub fn aio_suspend(
11411141
/// `EINTR`, in which case some but not all operations may have been submitted.
11421142
/// In that case, you must check the status of each individual operation, and
11431143
/// possibly resubmit some.
1144-
///
1144+
///
11451145
// Do not run this doc test on:
11461146
// * aarch64-unknown-linux-musl
11471147
// * i686-unknown-linux-musl
11481148
// because it hangs on these targets. After further debugging, we think this is
1149-
// likely a bug of musl. Since we only test our bindings and do not intend to
1149+
// likely a bug of musl. Since we only test our bindings and do not intend to
11501150
// fix the underlying libc bug, we skip this test here.
11511151
// See this thread for the discussion of this issue:
11521152
// https://github.com/nix-rust/nix/pull/2689#issuecomment-3419813159
1153-
#[cfg_attr(all(target_env = "musl", any(target_arch = "aarch64", target_arch = "x86")), doc = " ```no_run")]
1154-
#[cfg_attr(not(all(target_env = "musl", any(target_arch = "aarch64", target_arch = "x86"))), doc = " ```")]
1153+
#[cfg_attr(
1154+
all(
1155+
target_env = "musl",
1156+
any(target_arch = "aarch64", target_arch = "x86")
1157+
),
1158+
doc = " ```no_run"
1159+
)]
1160+
#[cfg_attr(
1161+
not(all(
1162+
target_env = "musl",
1163+
any(target_arch = "aarch64", target_arch = "x86")
1164+
)),
1165+
doc = " ```"
1166+
)]
11551167
/// # use libc::c_int;
11561168
/// # use std::os::unix::io::AsFd;
11571169
/// # use std::sync::atomic::{AtomicBool, Ordering};

0 commit comments

Comments
 (0)