diff options
| author | Nicole LeGare <legare@google.com> | 2025-02-04 22:18:53 +0000 |
|---|---|---|
| committer | Nicole L <dlegare.1001@gmail.com> | 2025-03-10 10:00:25 -0700 |
| commit | d633d8e074512fde1b1e7507ae758c8a7f96639b (patch) | |
| tree | 166650efec95b5d465135df635e646a465d4fb29 /library/std/src/sys | |
| parent | 7f6ee12526700e037ef34912b2b0c628028d382c (diff) | |
Format after patches have been applied
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/pal/trusty/mod.rs | 10 | ||||
| -rw-r--r-- | library/std/src/sys/pal/trusty/stdio.rs | 3 |
2 files changed, 6 insertions, 7 deletions
diff --git a/library/std/src/sys/pal/trusty/mod.rs b/library/std/src/sys/pal/trusty/mod.rs index 41005205c83..2b2774119e1 100644 --- a/library/std/src/sys/pal/trusty/mod.rs +++ b/library/std/src/sys/pal/trusty/mod.rs @@ -2,6 +2,9 @@ #[path = "../unsupported/args.rs"] pub mod args; +#[path = "../unsupported/common.rs"] +#[deny(unsafe_op_in_unsafe_fn)] +mod common; #[path = "../unsupported/env.rs"] pub mod env; #[path = "../unsupported/fs.rs"] @@ -17,12 +20,9 @@ pub mod pipe; #[path = "../unsupported/process.rs"] pub mod process; pub mod stdio; -#[path = "../unsupported/time.rs"] -pub mod time; #[path = "../unsupported/thread.rs"] pub mod thread; -#[path = "../unsupported/common.rs"] -#[deny(unsafe_op_in_unsafe_fn)] -mod common; +#[path = "../unsupported/time.rs"] +pub mod time; pub use common::*; diff --git a/library/std/src/sys/pal/trusty/stdio.rs b/library/std/src/sys/pal/trusty/stdio.rs index 3f7c9f76e71..d393e95394d 100644 --- a/library/std/src/sys/pal/trusty/stdio.rs +++ b/library/std/src/sys/pal/trusty/stdio.rs @@ -59,8 +59,7 @@ pub fn panic_output() -> Option<impl io::Write> { } fn _write(fd: i32, message: &[u8]) -> io::Result<usize> { - let mut iov = - libc::iovec { iov_base: message.as_ptr() as *mut _, iov_len: message.len() }; + let mut iov = libc::iovec { iov_base: message.as_ptr() as *mut _, iov_len: message.len() }; loop { // SAFETY: syscall, safe arguments. let ret = unsafe { libc::writev(fd, &iov, 1) }; |
