From 5aa72c30b2a688f96853a2fb00c8c0a84f3cc92d Mon Sep 17 00:00:00 2001 From: overtrue Date: Fri, 14 Aug 2026 09:34:41 +0800 Subject: [PATCH] chore(ecstore): drop the type aliases orphaned by the pagination removal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit core/sets.rs declared four local type aliases — ListObjectsV2Info, ListObjectVersionsInfo, ObjectInfoOrErr and WalkOptions — used only by the pool-level pagination pipeline removed earlier in this branch. store/list_objects.rs keeps its own live copies of the same aliases. They only surface now that #6087 removed the core module's dead_code blanket: on that older base each PR was warning-free on its own, and the combination is what exposes them. Their storage_api_contracts imports go with them. Ref rustfs/backlog#1823, rustfs/backlog#1821. --- crates/ecstore/src/core/sets.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/ecstore/src/core/sets.rs b/crates/ecstore/src/core/sets.rs index bb1026d28..7ef0f65b9 100644 --- a/crates/ecstore/src/core/sets.rs +++ b/crates/ecstore/src/core/sets.rs @@ -19,7 +19,6 @@ use crate::layout::set_heal::{formats_to_drives_info, new_heal_format_sets}; use crate::multipart_listing::paginate_multipart_listing; use crate::storage_api_contracts::{ bucket::{BucketInfo, BucketOperations, BucketOptions, DeleteBucketOptions, MakeBucketOptions}, - list::{StorageListObjectVersionsInfo, StorageListObjectsV2Info, StorageObjectInfoOrErr, StorageWalkOptions}, multipart::{CompletePart, ListMultipartsInfo, ListPartsInfo, MultipartInfo, MultipartUploadResult, PartInfo}, object::{DeletedObject, ObjectIO as _, ObjectOperations as _, ObjectToDelete}, range::HTTPRangeSpec, @@ -63,11 +62,6 @@ use tracing::warn; use tracing::{error, info}; use uuid::Uuid; -type ListObjectsV2Info = StorageListObjectsV2Info; -type ListObjectVersionsInfo = StorageListObjectVersionsInfo; -type ObjectInfoOrErr = StorageObjectInfoOrErr; -type WalkOptions = StorageWalkOptions bool>; - const LIST_MULTIPART_SETS_CONCURRENCY: usize = 4; fn is_idempotent_delete_prefix_error(err: &Error) -> bool {