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

Commit 51150f1

Browse files
committed
remove deprecated Error::description
1 parent d31288b commit 51150f1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/error_chain.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,6 @@ macro_rules! impl_error_chain_processed {
301301
}
302302

303303
impl ::std::error::Error for $error_name {
304-
fn description(&self) -> &str {
305-
self.description()
306-
}
307-
308304
impl_error_chain_cause_or_source!{
309305
types {
310306
$error_kind_name
@@ -369,7 +365,7 @@ macro_rules! impl_error_chain_processed {
369365
$(
370366
$(#[$meta_foreign_links])*
371367
$foreign_link_variant(err: $foreign_link_error_path) {
372-
description(::std::error::Error::description(err))
368+
description("")
373369
display("{}", err)
374370
}
375371
) *

0 commit comments

Comments
 (0)