From bfd4fd46897de17b2b0e331524b5073dd7cbc9cd Mon Sep 17 00:00:00 2001 From: asonix Date: Fri, 3 May 2024 22:34:18 -0500 Subject: [PATCH] Remove unused StatusError type --- src/process.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/process.rs b/src/process.rs index e31f15b..5d0b885 100644 --- a/src/process.rs +++ b/src/process.rs @@ -59,9 +59,6 @@ impl Drop for MetricsGuard { } } -#[derive(Debug)] -struct StatusError(ExitStatus); - pub(crate) struct Process { command: Arc, child: Child, @@ -487,11 +484,3 @@ impl ProcessRead { } } } - -impl std::fmt::Display for StatusError { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - write!(f, "Command failed with bad status: {}", self.0) - } -} - -impl std::error::Error for StatusError {}