diff options
Diffstat (limited to 'src/output.rs')
-rw-r--r-- | src/output.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/output.rs b/src/output.rs index f6e9bc4..9406571 100644 --- a/src/output.rs +++ b/src/output.rs @@ -78,9 +78,6 @@ pub fn show_error<E: Error + ?Sized>(error: &E) -> io::Result<()> { writeln!(stderr, " {}", error)?; let mut source = error.source(); - if source.is_none() { - source = error.cause(); - } while let Some(s) = source { stderr.set_color(&error_color)?; write!(stderr, " [caused by]")?; @@ -88,9 +85,6 @@ pub fn show_error<E: Error + ?Sized>(error: &E) -> io::Result<()> { writeln!(stderr, " {}", s)?; source = s.source(); - if source.is_none() { - source = s.cause(); - } } Ok(()) } |