aboutsummaryrefslogtreecommitdiffstats
path: root/src/wait
diff options
context:
space:
mode:
authorJonas Maier <jonas@x77.dev>2026-03-15 21:03:30 +0100
committerJonas Maier <jonas@x77.dev>2026-03-15 21:03:30 +0100
commit7bb25e51a1ad52f043836b425f2e8d3670e96f34 (patch)
tree4396257b4d9a6ef242e32f9599e2102d214c8db1 /src/wait
parent792a675a6422ccb3e8ff8ccbf6d45f0833e0e67c (diff)
downloadpish-7bb25e51a1ad52f043836b425f2e8d3670e96f34.tar.gz
cargo clippy
Diffstat (limited to 'src/wait')
-rw-r--r--src/wait/child.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wait/child.rs b/src/wait/child.rs
index 29a7d70..8859eb4 100644
--- a/src/wait/child.rs
+++ b/src/wait/child.rs
@@ -33,7 +33,7 @@ impl ChildWaiter {
pub fn new(child: Child) -> io::Result<Self> {
let fd = unsafe { syscall(SYS_pidfd_open, child.id(), 0) };
if fd < 0 {
- Err(io::Error::new(io::ErrorKind::Other, PidFdOpenError))
+ Err(io::Error::other(PidFdOpenError))
} else {
let fd = fd as RawFd;
Ok(Self { child, fd })