diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-03-15 21:03:30 +0100 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-03-15 21:03:30 +0100 |
| commit | 7bb25e51a1ad52f043836b425f2e8d3670e96f34 (patch) | |
| tree | 4396257b4d9a6ef242e32f9599e2102d214c8db1 /src/run/mod.rs | |
| parent | 792a675a6422ccb3e8ff8ccbf6d45f0833e0e67c (diff) | |
| download | pish-7bb25e51a1ad52f043836b425f2e8d3670e96f34.tar.gz | |
cargo clippy
Diffstat (limited to 'src/run/mod.rs')
| -rw-r--r-- | src/run/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/run/mod.rs b/src/run/mod.rs index 679dd44..1133ddb 100644 --- a/src/run/mod.rs +++ b/src/run/mod.rs @@ -140,10 +140,7 @@ impl SpawnedCmd { match self { SpawnedCmd::Builtin(tw) => tw.try_join(timeout_ms), SpawnedCmd::Fun(tw) => tw.try_join(timeout_ms), - SpawnedCmd::Child(child) => match child.wait(timeout_ms) { - Ok(None) => false, - _ => true, - }, + SpawnedCmd::Child(child) => !matches!(child.wait(timeout_ms), Ok(None)), SpawnedCmd::SpawnError(_) => true, SpawnedCmd::Joined(_) => true, SpawnedCmd::Pipeline(pipes) => pipes |
