diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-07-04 10:08:58 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-07-22 20:17:46 +0200 |
| commit | ee6f2c5276c3e19b919abb61693e66b0ded9c8ba (patch) | |
| tree | 6974b5a100e5bc19cbfe9bd28066fec32072a316 /library/std_detect/src/detect/os/linux/riscv.rs | |
| parent | 1057a2213af6fd273da86f13edeae559bfdd587d (diff) | |
| download | rust-ee6f2c5276c3e19b919abb61693e66b0ded9c8ba.tar.gz rust-ee6f2c5276c3e19b919abb61693e66b0ded9c8ba.zip | |
Reformat `std_detect`
Diffstat (limited to 'library/std_detect/src/detect/os/linux/riscv.rs')
| -rw-r--r-- | library/std_detect/src/detect/os/linux/riscv.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/library/std_detect/src/detect/os/linux/riscv.rs b/library/std_detect/src/detect/os/linux/riscv.rs index db20538af95..dbb3664890e 100644 --- a/library/std_detect/src/detect/os/linux/riscv.rs +++ b/library/std_detect/src/detect/os/linux/riscv.rs @@ -119,16 +119,7 @@ fn _riscv_hwprobe(out: &mut [riscv_hwprobe]) -> bool { cpus: *mut libc::c_ulong, flags: libc::c_uint, ) -> libc::c_long { - unsafe { - libc::syscall( - __NR_riscv_hwprobe, - pairs, - pair_count, - cpu_set_size, - cpus, - flags, - ) - } + unsafe { libc::syscall(__NR_riscv_hwprobe, pairs, pair_count, cpu_set_size, cpus, flags) } } unsafe { __riscv_hwprobe(out.as_mut_ptr(), out.len(), 0, ptr::null_mut(), 0) == 0 } |
