Rustix #228
rustfmt
1 file, 5 counts
Details
Results
Format checked | Amount |
---|---|
Files | 1 |
Count | 5 |
Versions
-
rustc 1.77.0-nightly (cb4d9a190 2024-01-30)
-
cargo 1.77.0-nightly (7bb7b5395 2024-01-20)
-
rustfmt 1.7.0-nightly (cb4d9a1 2024-01-30)
Annotations
Check warning on line 131 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs
github-actions / rustfmt
rustfmt check
Original:
```
let tree = open_tree(CWD, from.as_ref(), OpenTreeFlags::OPEN_TREE_CLOEXEC | OpenTreeFlags::OPEN_TREE_CLONE)?;
```
Expected:
```
let tree = open_tree(
CWD,
from.as_ref(),
OpenTreeFlags::OPEN_TREE_CLOEXEC | OpenTreeFlags::OPEN_TREE_CLONE,
)?;
```
Check warning on line 120 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs
github-actions / rustfmt
rustfmt check
Original:
```
move_mount(mount.as_fd(), "", CWD, dest.as_ref(), MoveMountFlags::MOVE_MOUNT_F_EMPTY_PATH)?;
```
Expected:
```
move_mount(
mount.as_fd(),
"",
CWD,
dest.as_ref(),
MoveMountFlags::MOVE_MOUNT_F_EMPTY_PATH,
)?;
```
Check warning on line 108 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs
github-actions / rustfmt
rustfmt check
Original:
```
move_mount(mount.as_fd(), "", CWD, dest.as_ref(), MoveMountFlags::MOVE_MOUNT_F_EMPTY_PATH)?;
```
Expected:
```
move_mount(
mount.as_fd(),
"",
CWD,
dest.as_ref(),
MoveMountFlags::MOVE_MOUNT_F_EMPTY_PATH,
)?;
```
Check warning on line 29 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs
github-actions / rustfmt
rustfmt check
Original:
```
move_mount(mount.as_fd(), "", CWD, target, MoveMountFlags::MOVE_MOUNT_F_EMPTY_PATH)?;
```
Expected:
```
move_mount(
mount.as_fd(),
"",
CWD,
target,
MoveMountFlags::MOVE_MOUNT_F_EMPTY_PATH,
)?;
```
Check warning on line 8 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs
github-actions / rustfmt
rustfmt check
Original:
```
use rustix::{mount::*, fs::CWD, fd::AsFd};
```
Expected:
```
use rustix::{fd::AsFd, fs::CWD, mount::*};
```