Remove "Unknown" error type
This commit is contained in:
parent
180eab2652
commit
791995f8fc
1 changed files with 0 additions and 2 deletions
|
@ -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"),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue