From 7bb25e51a1ad52f043836b425f2e8d3670e96f34 Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Sun, 15 Mar 2026 21:03:30 +0100 Subject: cargo clippy --- src/run/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/run') 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 -- cgit v1.2.3