mirror of
https://github.com/rustfs/rustfs.git
synced 2026-10-03 20:20:29 +00:00
style: apply rustfmt to scanner fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user