simplify kvdb error types (#8924)

This commit is contained in:
Marek Kotewicz
2018-07-02 05:04:48 -04:00
committed by André Silva
parent 67721f3413
commit 5ef41ed53e
21 changed files with 125 additions and 189 deletions

View File

@@ -18,7 +18,7 @@ use std::fmt;
use std::net;
use std::io::Error as IoError;
use {ethkey, crypto, kvdb};
use {ethkey, crypto};
/// Secret store error.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
@@ -174,12 +174,6 @@ impl From<ethkey::crypto::Error> for Error {
}
}
impl From<kvdb::Error> for Error {
fn from(err: kvdb::Error) -> Self {
Error::Database(err.to_string())
}
}
impl From<crypto::Error> for Error {
fn from(err: crypto::Error) -> Self {
Error::EthKey(err.to_string())