Adjust formatting

This commit is contained in:
Michael Pfaff 2023-07-03 18:47:56 -04:00
parent ae7281abac
commit c78b223c67
Signed by: michael
GPG Key ID: CF402C4A012AA9D4
2 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@ impl fmt::Display for Context {
let opts = ReportOpts::default();
for detail in &self.extra {
f.write_str("\n")?;
report_write!(f, &opts.indent().indent().next(), " - {detail}")?;
report_write!(f, &opts.indent().next(), "- {detail}")?;
}
Ok(())
}

View File

@ -140,11 +140,12 @@ impl std::error::Error for How {}
impl std::fmt::Display for How {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let opts = ReportOpts::default();
for (i, ctx) in self.0.context.iter().enumerate() {
if i != 0 {
f.write_str("\n")?;
}
std::fmt::Display::fmt(ctx, f)?;
report_write!(f, &opts.indent(), "- {ctx}")?;
}
Ok(())
}