mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 02:33:15 +00:00
clippy
clippy clippy
This commit is contained in:
@@ -456,3 +456,11 @@ pub fn is_all_buckets_not_found(errs: &[Option<Error>]) -> bool {
|
||||
}
|
||||
errs.len() == not_found_count
|
||||
}
|
||||
|
||||
pub fn is_err_os_not_exist(err: &Error) -> bool {
|
||||
if let Some(os_err) = err.downcast_ref::<io::Error>() {
|
||||
os_is_not_exist(os_err)
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user