fix clippy

This commit is contained in:
weisd
2025-06-07 15:39:06 +08:00
parent b570b6aa36
commit 62a7824d0d
15 changed files with 59 additions and 94 deletions
+1 -2
View File
@@ -53,8 +53,7 @@ impl From<Error> for BucketMetadataError {
impl From<std::io::Error> for BucketMetadataError {
fn from(e: std::io::Error) -> Self {
e.downcast::<BucketMetadataError>()
.unwrap_or_else(|e| BucketMetadataError::other(e))
e.downcast::<BucketMetadataError>().unwrap_or_else(BucketMetadataError::other)
}
}