Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Resolve failing tests #279

Merged
merged 3 commits into from
Dec 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ rust:
# Oldest supported version for all features.
# Use of https://github.com/rust-lang/rfcs/pull/16
# rustc-demangle uses feature `rename-dependency`
- 1.31.0
- 1.32.0
# Oldest supported version as dependency, with no features, tests, or examples.
- 1.10.0
- 1.13.0

sudo: false
cache: cargo
Expand All @@ -26,7 +26,7 @@ before_script:

script:
- travis-cargo build -- $FEATURES
- travis-cargo --skip 1.10.0 test -- $FEATURES
- travis-cargo --skip 1.13.0 test -- $FEATURES

after_success:
- travis-cargo --only stable doc
Expand All @@ -44,4 +44,4 @@ env:
matrix:
exclude:
- env: FEATURES=--features=backtrace
rust: 1.10.0
rust: 1.13.0
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,14 +647,13 @@ impl<'a, T> fmt::Display for DisplayChain<'a, T>
where T: ChainedError
{
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
// Keep `try!` for 1.10 support
writeln!(fmt, "Error: {}", self.0)?;

for e in self.0.iter().skip(1) {
writeln!(fmt, "Caused by: {}", e)?;
}

if let Some(backtrace) = self.0.backtrace() {
if let Some(backtrace) = ChainedError::backtrace(self.0) {
writeln!(fmt, "{:?}", backtrace)?;
}

Expand Down