cargo fmt

This commit is contained in:
houseme
2025-06-06 15:30:27 +08:00
parent 3eaa3d68c7
commit 1f62c35846
18 changed files with 70 additions and 69 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ impl BucketMetadata {
}
//let temp = self.bucket_targets_config_json.clone();
if !self.bucket_targets_config_json.is_empty() {
let arr:Vec<BucketTarget> = serde_json::from_slice(&self.bucket_targets_config_json)?;
let arr: Vec<BucketTarget> = serde_json::from_slice(&self.bucket_targets_config_json)?;
self.bucket_target_config = Some(BucketTargets { targets: arr });
} else {
self.bucket_target_config = Some(BucketTargets::default())
+1 -2
View File
@@ -558,7 +558,7 @@ impl BucketMetadataSys {
return Err(Error::new(BucketMetadataError::BucketReplicationConfigNotFound));
}
res
},
}
Err(err) => {
warn!("get_replication_config err {:?}", &err);
return if config::error::is_err_config_not_found(&err) {
@@ -593,7 +593,6 @@ impl BucketMetadataSys {
}
};
println!("573");
if let Some(config) = &bm.bucket_target_config {
+1 -1
View File
@@ -4,9 +4,9 @@ pub mod metadata_sys;
pub mod object_lock;
pub mod policy_sys;
mod quota;
pub mod replication;
pub mod tagging;
pub mod target;
pub mod utils;
pub mod versioning;
pub mod replication;
pub mod versioning_sys;
+1 -1
View File
@@ -24,4 +24,4 @@ impl StatusType {
pub fn is_empty(&self) -> bool {
matches!(self, StatusType::Pending) // Adjust this as needed
}
}
}
+1 -1
View File
@@ -1 +1 @@
pub mod datatypes;
pub mod datatypes;