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)]
pub enum StoreErrorType {
Unknown,
IdNotFound,
OutOfMemory,
// maybe more
@ -28,7 +27,6 @@ impl<'a> From<&'a StoreErrorType> for String {
fn from(e: &'a StoreErrorType) -> String {
match e {
&StoreErrorType::Unknown => String::from("<Unknown>"),
&StoreErrorType::IdNotFound => String::from("ID not found"),
&StoreErrorType::OutOfMemory => String::from("Out of Memory"),
}