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

Commit 99ffdac

Browse files
committed
allow deprecated Error::description
1 parent d31288b commit 99ffdac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/error_chain.rs

+3
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ macro_rules! impl_error_chain_processed {
301301
}
302302

303303
impl ::std::error::Error for $error_name {
304+
#[allow(deprecated)]
304305
fn description(&self) -> &str {
305306
self.description()
306307
}
@@ -356,6 +357,7 @@ macro_rules! impl_error_chain_processed {
356357

357358
impl_error_chain_kind! {
358359
/// The kind of an error.
360+
#[allow(deprecated)]
359361
#[derive(Debug)]
360362
pub enum $error_kind_name {
361363
$(
@@ -369,6 +371,7 @@ macro_rules! impl_error_chain_processed {
369371
$(
370372
$(#[$meta_foreign_links])*
371373
$foreign_link_variant(err: $foreign_link_error_path) {
374+
#[allow(deprecated)]
372375
description(::std::error::Error::description(err))
373376
display("{}", err)
374377
}

0 commit comments

Comments
 (0)