disallow some methods from itertools

This commit is contained in:
Luna Yao
2026-04-06 18:28:30 +02:00
parent 6af62e939e
commit 5a8a1d3e6b
11 changed files with 44 additions and 40 deletions
+1 -2
View File
@@ -73,7 +73,6 @@ use crate::{
use atomic_shim::AtomicU64;
use cfg_if::cfg_if;
use itertools::Itertools;
static SERVICE_ID: u32 = 7;
static UPDATE_PEER_INFO_PERIOD: Duration = Duration::from_secs(3600);
@@ -1341,7 +1340,7 @@ impl RouteTable {
.into_iter()
.flat_map(|info| &info.proxy_cidrs)
.filter_map(|cidr| cidr.parse::<IpCidr>().ok())
.collect_vec();
.collect::<Vec<_>>();
// build next hop map
let (graph, start_node) =