Skip to content

Commit 35df14f

Browse files
committed
Align error implementation with current best practices
1 parent 54b3f96 commit 35df14f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/error.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ pub enum Error {
1717
}
1818

1919
impl ::std::error::Error for Error {
20-
fn description(&self) -> &str {
21-
match *self {
22-
Error::Io(ref e) => e.description(),
23-
Error::Unexpected(_) => "An Unexpected Error Occurred",
24-
Error::InvalidPath(_) => "A Provided Path was invalid",
25-
Error::Unsupported(_) => "Operation is not supported on target os",
26-
}
27-
}
28-
2920
fn cause(&self) -> Option<&dyn std::error::Error> {
3021
match *self {
3122
Error::Io(ref e) => Some(e),

0 commit comments

Comments
 (0)