mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-10 07:06:53 +00:00
mc test ok
This commit is contained in:
@@ -115,6 +115,15 @@ impl From<ecstore::error::StorageError> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Error> for ecstore::error::StorageError {
|
||||
fn from(e: Error) -> Self {
|
||||
match e {
|
||||
Error::ConfigNotFound => ecstore::error::StorageError::ConfigNotFound,
|
||||
_ => ecstore::error::StorageError::other(e),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<policy::error::Error> for Error {
|
||||
fn from(e: policy::error::Error) -> Self {
|
||||
match e {
|
||||
@@ -152,6 +161,12 @@ impl From<policy::error::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Error> for std::io::Error {
|
||||
fn from(e: Error) -> Self {
|
||||
std::io::Error::other(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<serde_json::Error> for Error {
|
||||
fn from(e: serde_json::Error) -> Self {
|
||||
Error::other(e)
|
||||
|
||||
Reference in New Issue
Block a user