diff options
author | Daniel Schadt <kingdread@gmx.de> | 2019-12-12 02:16:27 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2019-12-12 02:16:27 +0100 |
commit | 3c92e88164db6a94177fb4adeb18c80dffc377e4 (patch) | |
tree | c2fdefbe04901df614a9753093d146f424d42a9c /src/output.rs | |
parent | a6afa81d1d9f2dd7d10fe7c0555ae8a8a6d84867 (diff) | |
download | kondou-3c92e88164db6a94177fb4adeb18c80dffc377e4.tar.gz kondou-3c92e88164db6a94177fb4adeb18c80dffc377e4.tar.bz2 kondou-3c92e88164db6a94177fb4adeb18c80dffc377e4.zip |
remove quick_error
quick_error used the deprecated Error::cause interface, therefore we
want to use our own error enums with proper methods.
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(()) } |