chore: update Rust to 2024 edition (#2066)

This commit is contained in:
Luna Yao
2026-04-10 00:22:12 +08:00
committed by GitHub
parent a8feb9ac2b
commit a879dd1b14
158 changed files with 1327 additions and 1231 deletions
+5 -5
View File
@@ -1,27 +1,27 @@
use std::{
sync::{
atomic::{AtomicU32, Ordering},
Arc,
atomic::{AtomicU32, Ordering},
},
time::Duration,
};
use rand::{thread_rng, Rng};
use rand::{Rng, thread_rng};
use tokio::{
sync::broadcast,
task::JoinSet,
time::{timeout, Interval},
time::{Interval, timeout},
};
use tracing::Instrument;
use crate::{
common::{error::Error, PeerId},
common::{PeerId, error::Error},
peers::traffic_metrics::AggregateTrafficMetrics,
tunnel::{
TunnelError,
mpsc::MpscTunnelSender,
packet_def::{PacketType, ZCPacket},
stats::{Throughput, WindowLatency},
TunnelError,
},
};