From 93150bcd2a7f001c5cd767e8a3a43d4272e7fa1c Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 8 Aug 2018 18:28:14 +0200 Subject: [PATCH] error: Remove unused io::Error from Error. --- src/error.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/error.rs b/src/error.rs index dbfbd8a..12ac4f3 100644 --- a/src/error.rs +++ b/src/error.rs @@ -5,7 +5,6 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. use std::convert::From; -use std::io; use std::num; use std::string; use std::fmt; @@ -19,7 +18,6 @@ use chrono; #[derive(Debug)] pub enum Error { ParseError(&'static str), - IoError(io::Error), XMLError(minidom::Error), Base64Error(base64::DecodeError), ParseIntError(num::ParseIntError), @@ -33,7 +31,6 @@ impl fmt::Display for Error { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { match *self { Error::ParseError(s) => write!(fmt, "{}", s), - Error::IoError(ref e) => write!(fmt, "{}", e), Error::XMLError(ref e) => write!(fmt, "{}", e), Error::Base64Error(ref e) => write!(fmt, "{}", e), Error::ParseIntError(ref e) => write!(fmt, "{}", e), @@ -45,12 +42,6 @@ impl fmt::Display for Error { } } -impl From for Error { - fn from(err: io::Error) -> Error { - Error::IoError(err) - } -} - impl From for Error { fn from(err: minidom::Error) -> Error { Error::XMLError(err)