From 51150f10f8181075790286ac8ab0398099daa710 Mon Sep 17 00:00:00 2001 From: Andrii Radyk Date: Mon, 16 Dec 2019 22:56:37 +0100 Subject: [PATCH 1/2] remove deprecated Error::description --- src/error_chain.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/error_chain.rs b/src/error_chain.rs index 18a352e94..139293e6f 100644 --- a/src/error_chain.rs +++ b/src/error_chain.rs @@ -301,10 +301,6 @@ macro_rules! impl_error_chain_processed { } impl ::std::error::Error for $error_name { - fn description(&self) -> &str { - self.description() - } - impl_error_chain_cause_or_source!{ types { $error_kind_name @@ -369,7 +365,7 @@ macro_rules! impl_error_chain_processed { $( $(#[$meta_foreign_links])* $foreign_link_variant(err: $foreign_link_error_path) { - description(::std::error::Error::description(err)) + description("") display("{}", err) } ) * From 2587bc98b160149b46d61b98a95747a24c72ffc2 Mon Sep 17 00:00:00 2001 From: Andrii Radyk Date: Mon, 16 Dec 2019 23:48:11 +0100 Subject: [PATCH 2/2] increase minimal version in travis --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1b629b175..aa893e684 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ rust: # rustc-demangle uses feature `rename-dependency` - 1.32.0 # Oldest supported version as dependency, with no features, tests, or examples. -- 1.13.0 +- 1.27.0 sudo: false cache: cargo @@ -44,4 +44,4 @@ env: matrix: exclude: - env: FEATURES=--features=backtrace - rust: 1.13.0 + rust: 1.27.0