mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 21:26:28 +00:00
fix(object-capacity): resolve clippy type_complexity lint in test code (#4212)
fix(object-capacity): simplify config getter test type
This commit is contained in:
@@ -1125,11 +1125,12 @@ mod tests {
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||||
|
|
||||||
|
type ConfigGetterCase = (&'static str, fn() -> u64, u64, &'static str, u64);
|
||||||
|
|
||||||
/// Table of env-configurable getters: (env var, getter normalized to u64,
|
/// Table of env-configurable getters: (env var, getter normalized to u64,
|
||||||
/// expected default, override string, expected override value).
|
/// expected default, override string, expected override value).
|
||||||
/// Durations are normalized to whole seconds.
|
/// Durations are normalized to whole seconds.
|
||||||
#[allow(clippy::type_complexity)]
|
fn config_getter_cases() -> Vec<ConfigGetterCase> {
|
||||||
fn config_getter_cases() -> Vec<(&'static str, fn() -> u64, u64, &'static str, u64)> {
|
|
||||||
vec![
|
vec![
|
||||||
(
|
(
|
||||||
ENV_CAPACITY_SCHEDULED_INTERVAL,
|
ENV_CAPACITY_SCHEDULED_INTERVAL,
|
||||||
|
|||||||
Reference in New Issue
Block a user