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

Commit 50f6821

Browse files
committed
allow deprecated Error::description
1 parent d31288b commit 50f6821

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/error_chain.rs

Lines changed: 2 additions & 0 deletions
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
$(

0 commit comments

Comments
 (0)