Skip to content
Merged
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
remove deprecated Error::description, replace deprecated cause with s…
…ource
  • Loading branch information
AnderEnder committed Jan 2, 2020
commit 62b70fe70778675f969132bacafdb41badef2f09
8 changes: 1 addition & 7 deletions src/stack/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,7 @@ impl Display for StackError {
}

impl Error for StackError {
fn description(&self) -> &str {
match *self {
StackError::ExceedsMaximumSize(_) => "exceeds maximum stack size",
StackError::IoError(ref e) => e.description(),
}
}
fn cause(&self) -> Option<&dyn Error> {
fn source(&self) -> Option<&(dyn Error + 'static)> {
match *self {
StackError::ExceedsMaximumSize(_) => None,
StackError::IoError(ref e) => Some(e),
Expand Down