mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
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:
@@ -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<()>>>,
|
||||
|
||||
Reference in New Issue
Block a user