Remove "Unknown" error type

This commit is contained in:
Matthias Beyer 2016-01-16 13:50:10 +01:00
parent 180eab2652
commit 791995f8fc

View file

@ -10,7 +10,6 @@ use std::io::Error as IOError;
#[derive(Clone)] #[derive(Clone)]
pub enum StoreErrorType { pub enum StoreErrorType {
Unknown,
IdNotFound, IdNotFound,
OutOfMemory, OutOfMemory,
// maybe more // maybe more
@ -28,7 +27,6 @@ impl<'a> From<&'a StoreErrorType> for String {
fn from(e: &'a StoreErrorType) -> String { fn from(e: &'a StoreErrorType) -> String {
match e { match e {
&StoreErrorType::Unknown => String::from("<Unknown>"),
&StoreErrorType::IdNotFound => String::from("ID not found"), &StoreErrorType::IdNotFound => String::from("ID not found"),
&StoreErrorType::OutOfMemory => String::from("Out of Memory"), &StoreErrorType::OutOfMemory => String::from("Out of Memory"),
} }