MCPcopy Create free account
hub / github.com/assert-rs/assert_cmd / fmt

Method fmt

src/output.rs:246–260  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

244
245impl 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)]

Callers

nothing calls this directly

Calls 2

output_fmtFunction · 0.85
format_bytesFunction · 0.85

Tested by

no test coverage detected