error: Remove std::error::Error implementation as it conflicts with failure.

This commit is contained in:
Emmanuel Gil Peyrot 2018-02-20 16:53:42 +01:00
commit fab99c9004
2 changed files with 2 additions and 18 deletions

View file

@ -9,7 +9,6 @@ use std::io;
use std::num;
use std::string;
use std::fmt;
use std::error;
use base64;
use minidom;
@ -43,21 +42,6 @@ impl fmt::Display for Error {
}
}
impl error::Error for Error {
fn description(&self) -> &str {
match *self {
Error::ParseError(s) => s,
Error::IoError(ref e) => e.description(),
Error::XMLError(ref e) => e.description(),
Error::Base64Error(ref e) => e.description(),
Error::ParseIntError(ref e) => e.description(),
Error::ParseStringError(ref e) => e.description(),
Error::JidParseError(_) => "JID parse error",
Error::ChronoParseError(ref e) => e.description(),
}
}
}
impl From<io::Error> for Error {
fn from(err: io::Error) -> Error {
Error::IoError(err)