mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
chore(lint): clippy rules redundant_clone (#2554)
This commit is contained in:
@@ -71,7 +71,7 @@ fn test_trusted_proxy_config() {
|
||||
TrustedProxy::Cidr("10.0.0.0/8".parse().unwrap()),
|
||||
];
|
||||
|
||||
let config = TrustedProxyConfig::new(proxies.clone(), ValidationMode::Strict, true, 10, true, vec![]);
|
||||
let config = TrustedProxyConfig::new(proxies, ValidationMode::Strict, true, 10, true, vec![]);
|
||||
|
||||
assert_eq!(config.proxies.len(), 2);
|
||||
assert_eq!(config.validation_mode, ValidationMode::Strict);
|
||||
|
||||
Reference in New Issue
Block a user