clippy: remove needless clone and collect
This commit is contained in:
parent
83ac1519e9
commit
34702f22b6
|
|
@ -110,9 +110,9 @@ fn rejects_all_addresses_if_applying_offset_causes_an_underflow() {
|
||||||
DateTime32::from(u32::MAX).to_chrono(),
|
DateTime32::from(u32::MAX).to_chrono(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
let validated_peers: Vec<_> = validate_addrs(input_peers.clone(), last_seen_limit).collect();
|
let mut validated_peers = validate_addrs(input_peers, last_seen_limit);
|
||||||
|
|
||||||
assert!(validated_peers.is_empty());
|
assert!(validated_peers.next().is_none());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a mock list of gossiped [`MetaAddr`]s with the specified `last_seen_times`.
|
/// Create a mock list of gossiped [`MetaAddr`]s with the specified `last_seen_times`.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue