fix: make lint build and clippy happy (#71)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong
2025-07-07 09:55:53 +08:00
committed by GitHub
parent 040b05c318
commit abd5dff9b5
47 changed files with 1091 additions and 1379 deletions
+9 -18
View File
@@ -70,29 +70,20 @@ pub async fn read_config_with_metadata<S: StorageAPI>(
}
pub async fn save_config<S: StorageAPI>(api: Arc<S>, file: &str, data: Vec<u8>) -> Result<()> {
save_config_with_opts(
api,
file,
data,
&ObjectOptions {
max_parity: true,
..Default::default()
},
)
save_config_with_opts(api, file, data, &ObjectOptions {
max_parity: true,
..Default::default()
})
.await
}
pub async fn delete_config<S: StorageAPI>(api: Arc<S>, file: &str) -> Result<()> {
match api
.delete_object(
RUSTFS_META_BUCKET,
file,
ObjectOptions {
delete_prefix: true,
delete_prefix_object: true,
..Default::default()
},
)
.delete_object(RUSTFS_META_BUCKET, file, ObjectOptions {
delete_prefix: true,
delete_prefix_object: true,
..Default::default()
})
.await
{
Ok(_) => Ok(()),