fix(protocols): allow clippy::type_complexity in expiration worker tests (#4395)

fix(protocols): allow clippy type_complexity in test mock struct

The MockExpirationObjectBackend test struct uses a nested generic type
that triggers clippy::type_complexity. Add #[allow(clippy::type_complexity)]
since this is test-only code where the type is inherent to the mock design.

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
Zhengchao An
2026-07-08 08:01:13 +08:00
committed by GitHub
parent 3f13d098b4
commit 07324e268b
@@ -659,6 +659,7 @@ mod tests {
type MetadataResult = SwiftResult<Option<HashMap<String, String>>>;
#[derive(Default)]
#[allow(clippy::type_complexity)]
struct MockExpirationObjectBackend {
metadata_results: Mutex<VecDeque<MetadataResult>>,
delete_results: Mutex<VecDeque<SwiftResult<()>>>,