simplify kvdb error types (#8924)
This commit is contained in:
committed by
André Silva
parent
67721f3413
commit
5ef41ed53e
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user