We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3af77 commit 16af52aCopy full SHA for 16af52a
src/stack/mod.rs
@@ -40,13 +40,7 @@ impl Display for StackError {
40
}
41
42
impl Error for StackError {
43
- fn description(&self) -> &str {
44
- match *self {
45
- StackError::ExceedsMaximumSize(_) => "exceeds maximum stack size",
46
- StackError::IoError(ref e) => e.description(),
47
- }
48
49
- fn cause(&self) -> Option<&dyn Error> {
+ fn source(&self) -> Option<&(dyn Error + 'static)> {
50
match *self {
51
StackError::ExceedsMaximumSize(_) => None,
52
StackError::IoError(ref e) => Some(e),
0 commit comments