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 83368db commit 79838d4Copy full SHA for 79838d4
src/error.rs
@@ -54,16 +54,7 @@ impl fmt::Display for Error {
54
}
55
56
impl StdError for Error {
57
- fn description(&self) -> &str {
58
- match *self {
59
- Error::Format(_) => "invalid JPEG format",
60
- Error::Unsupported(_) => "unsupported JPEG feature",
61
- Error::Io(ref err) => err.description(),
62
- Error::Internal(ref err) => err.description(),
63
- }
64
65
-
66
- fn cause(&self) -> Option<&dyn StdError> {
+ fn source(&self) -> Option<&(dyn StdError + 'static)> {
67
match *self {
68
Error::Io(ref err) => Some(err),
69
Error::Internal(ref err) => Some(&**err),
0 commit comments