summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d9ba026e..410db186 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -152,16 +152,7 @@ impl From<std::string::FromUtf8Error> for Error {
fn from(_: std::string::FromUtf8Error) -> Error { Error::InvalidUtf8 }
}
-impl error::Error for Error {
- fn description(&self) -> &str {
- match *self {
- Error::InvalidPath => "Invalid path",
- Error::InvalidUtf8 => "Invalid UTF-8 string",
- Error::UnsupportedOperation => "Unsupported Operation",
- Error::Sys(ref errno) => errno.desc(),
- }
- }
-}
+impl error::Error for Error {}
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {