clippy

clippy
This commit is contained in:
weisd
2024-12-04 11:15:49 +08:00
committed by weisd
parent 03adb9f57e
commit 4ccd69c782
6 changed files with 64 additions and 26 deletions
+8
View File
@@ -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
}
}