(&self, f: &mut fmt::Formatter<'_>)
| 244 | |
| 245 | impl fmt::Display for OutputError { |
| 246 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 247 | let palette = crate::Palette::color(); |
| 248 | if let Some(ref cmd) = self.cmd { |
| 249 | writeln!(f, "{:#}={:#}", palette.key("command"), palette.value(cmd))?; |
| 250 | } |
| 251 | if let Some(ref stdin) = self.stdin { |
| 252 | writeln!( |
| 253 | f, |
| 254 | "{:#}={:#}", |
| 255 | palette.key("stdin"), |
| 256 | palette.value(DebugBytes::new(stdin)) |
| 257 | )?; |
| 258 | } |
| 259 | write!(f, "{:#}", self.cause) |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | #[derive(Debug)] |
nothing calls this directly
no test coverage detected