style: apply rustfmt to scanner fix

This commit is contained in:
Hiroaki KAWAI
2026-09-26 21:31:39 +09:00
parent 75f5fefe27
commit c871d03911
2 changed files with 5 additions and 4 deletions
@@ -1302,9 +1302,7 @@ pub(super) fn classify_get_size_failure(item: &ScannerItem, err: &StorageError)
}
if is_scanner_metadata_corrupt_error(err) {
return GetSizeFailureAction::HealMetadata {
object: metadata_object,
};
return GetSizeFailureAction::HealMetadata { object: metadata_object };
}
if is_scanner_metadata_transient_error(err) {
+4 -1
View File
@@ -590,7 +590,10 @@ fn test_classify_get_size_failure_skips_scanner_owned_usage_observation() {
.expect("temp dir metadata should be readable")
.file_type();
let item = ScannerItem {
path: temp_dir.join("internal/buckets/.usage.observed.json/xl.meta").to_string_lossy().to_string(),
path: temp_dir
.join("internal/buckets/.usage.observed.json/xl.meta")
.to_string_lossy()
.to_string(),
bucket: crate::RUSTFS_META_BUCKET.to_string(),
prefix: crate::data_usage_define::DATA_USAGE_OBSERVED_OBJ_NAME_PATH.to_string(),
object_name: "xl.meta".to_string(),