Rustix #228
Annotations
1 error and 5 warnings
clippy
Process completed with exit code 101.
|
rustfmt check:
/home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs#L131
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,
)?;
```
|
rustfmt check:
/home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs#L120
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,
)?;
```
|
rustfmt check:
/home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs#L108
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,
)?;
```
|
rustfmt check:
/home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs#L29
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,
)?;
```
|
rustfmt check:
/home/runner/work/KernelSU/KernelSU/userspace/ksud/src/mount.rs#L8
Original:
```
use rustix::{mount::*, fs::CWD, fd::AsFd};
```
Expected:
```
use rustix::{fd::AsFd, fs::CWD, mount::*};
```
|