fix(rust): clean up unused Rust warnings in bridge, network, and server modules
This commit is contained in:
@@ -13,7 +13,7 @@ use std::net::Ipv4Addr;
|
||||
use std::sync::Arc;
|
||||
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
||||
use tokio::sync::mpsc;
|
||||
use tracing::{debug, error, info, warn};
|
||||
use tracing::{debug, info, warn};
|
||||
|
||||
use crate::server::ServerState;
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ pub struct IpPool {
|
||||
/// Network address (e.g., 10.8.0.0)
|
||||
network: Ipv4Addr,
|
||||
/// Prefix length (e.g., 24)
|
||||
#[allow(dead_code)]
|
||||
prefix_len: u8,
|
||||
/// Allocated IPs: IP -> client_id
|
||||
allocated: HashMap<Ipv4Addr, String>,
|
||||
|
||||
@@ -319,7 +319,7 @@ impl VpnServer {
|
||||
|
||||
// Socket engine setup
|
||||
let (s_tx, s_rx) = mpsc::channel::<Vec<u8>>(4096);
|
||||
let (s_shut_tx, s_shut_rx) = mpsc::channel::<()>(1);
|
||||
let (_s_shut_tx, s_shut_rx) = mpsc::channel::<()>(1);
|
||||
|
||||
// Bridge engine setup
|
||||
let phys_iface = match &config.bridge_physical_interface {
|
||||
|
||||
Reference in New Issue
Block a user