Indent causes in Debug representation with spaces

This commit is contained in:
David Tolnay 2019-10-06 17:00:44 -04:00
parent a97f8dc3eb
commit ad275d587f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -319,9 +319,9 @@ impl Debug for Error {
let mut chain = self.chain().skip(1).enumerate();
if let Some((n, error)) = chain.next() {
writeln!(f, "\nCaused by:")?;
writeln!(f, "\t{}: {}", n, error)?;
writeln!(f, " {}: {}", n, error)?;
for (n, error) in chain {
writeln!(f, "\t{}: {}", n, error)?;
writeln!(f, " {}: {}", n, error)?;
}
}