From bac051c01a83fff8411524ade8e9ae15245ac526 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 28 Feb 2022 14:07:40 -0500 Subject: remove unused code --- src/runner/command.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runner/command.rs b/src/runner/command.rs index 89bc27b..059b173 100644 --- a/src/runner/command.rs +++ b/src/runner/command.rs @@ -175,7 +175,8 @@ impl Child { > { Box::pin(async move { match self { - Self::Binary(mut child) => Ok(child.wait().await?), + // this case is handled by waitpid + Self::Binary(_) => unreachable!(), Self::Builtin(child) => Ok(child.status().await?), } }) -- cgit v1.2.3-54-g00ecf