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:
Zhengchao An
2026-07-03 08:18:59 +08:00
committed by GitHub
parent 31df11beb7
commit d1a2dec18e
@@ -1125,11 +1125,12 @@ mod tests {
use std::sync::Arc;
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,
/// expected default, override string, expected override value).
/// Durations are normalized to whole seconds.
#[allow(clippy::type_complexity)]
fn config_getter_cases() -> Vec<(&'static str, fn() -> u64, u64, &'static str, u64)> {
fn config_getter_cases() -> Vec<ConfigGetterCase> {
vec![
(
ENV_CAPACITY_SCHEDULED_INTERVAL,