diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-02-28 14:07:40 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-02-28 14:07:40 -0500 |
commit | bac051c01a83fff8411524ade8e9ae15245ac526 (patch) | |
tree | f7d327fef50f8f5710472f7ed0b1bb9d9e512420 /src | |
parent | db84eaac5ceaa0105422c3185e08a7637e8d97e0 (diff) | |
download | nbsh-bac051c01a83fff8411524ade8e9ae15245ac526.tar.gz nbsh-bac051c01a83fff8411524ade8e9ae15245ac526.zip |
remove unused code
Diffstat (limited to 'src')
-rw-r--r-- | src/runner/command.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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?), } }) |