From 86940a94522c738fd5a23fee629690104ea6bf88 Mon Sep 17 00:00:00 2001 From: houseme Date: Wed, 8 Jul 2026 03:29:46 +0800 Subject: [PATCH] fix(protocols): resolve clippy type_complexity in swift expiration worker tests (#4393) fix(protocols): factor swift expiration mock result type into alias The swift feature clippy matrix on main fails with clippy::type_complexity on the MockExpirationObjectBackend test struct introduced with the expiration worker tests, blocking CI for every open PR. Introduce a MetadataResult type alias in the test module; no behavior change. Co-authored-by: heihutu --- crates/protocols/src/swift/expiration_worker.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/protocols/src/swift/expiration_worker.rs b/crates/protocols/src/swift/expiration_worker.rs index 473dccd8d..70d048e0e 100644 --- a/crates/protocols/src/swift/expiration_worker.rs +++ b/crates/protocols/src/swift/expiration_worker.rs @@ -656,9 +656,11 @@ mod tests { use std::collections::VecDeque; use std::sync::Mutex; + type MetadataResult = SwiftResult>>; + #[derive(Default)] struct MockExpirationObjectBackend { - metadata_results: Mutex>>>>, + metadata_results: Mutex>, delete_results: Mutex>>, deleted_objects: Mutex>, }