chore: update Rust to 2024 edition (#2066)

This commit is contained in:
Luna Yao
2026-04-09 18:22:12 +02:00
committed by GitHub
parent a8feb9ac2b
commit a879dd1b14
158 changed files with 1327 additions and 1231 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ use futures::stream::FuturesUnordered;
use tokio::net::{TcpListener, TcpSocket, TcpStream};
use super::{
common::{wait_for_connect_futures, FramedReader, FramedWriter, TunnelWrapper},
IpVersion, Tunnel, TunnelError, TunnelListener,
common::{FramedReader, FramedWriter, TunnelWrapper, wait_for_connect_futures},
};
const TCP_MTU_BYTES: usize = 2000;
@@ -216,8 +216,8 @@ impl super::TunnelConnector for TcpTunnelConnector {
#[cfg(test)]
mod tests {
use crate::tunnel::{
common::tests::{_tunnel_bench, _tunnel_pingpong},
TunnelConnector,
common::tests::{_tunnel_bench, _tunnel_pingpong},
};
use super::*;