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 554acf0 commit e86db16Copy full SHA for e86db16
src/result.rs
@@ -44,16 +44,8 @@ impl fmt::Display for Error {
44
}
45
46
impl error::Error for Error {
47
- fn description(&self) -> &str {
48
- match *self {
49
- Error::NewContext(ref err) => err.description(),
50
- Error::InitContext(ref err) => err.description(),
51
- Error::Io(ref err) => err.description(),
52
- Error::NulInPath(ref err) => err.description(),
53
- }
54
55
56
- fn cause(&self) -> Option<&error::Error> {
+ fn source(&self) -> Option<&(dyn error::Error + 'static)> {
57
match *self {
58
Error::NewContext(ref err) => Some(err),
59
Error::InitContext(ref err) => Some(err),
0 commit comments