aboutsummaryrefslogtreecommitdiffstats
path: root/src/run
diff options
context:
space:
mode:
Diffstat (limited to 'src/run')
-rw-r--r--src/run/mod.rs5
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