warning fix

This commit is contained in:
2026-06-18 13:44:38 +07:00
parent 4edf472d1f
commit cab3c10c85
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ async fn main() -> anyhow::Result<()> {
let addr: std::net::SocketAddr = remote_address.parse().expect("Invalid address format");
let p_ip = addr.ip().to_string();
if let Err(e) = reset_platform_routing(Some(&p_ip)) {
if let Err(e) = reset_platform_routing(Some(&p_ip), false) {
error!("Failed to restore routing: {}", e);
} else {
info!("System routing restored successfully.");
+1 -1
View File
@@ -6,7 +6,7 @@ use netrunner_core::{
},
rawcast::RawCastFrame,
};
use netrunner_logger::{debug, warn};
use netrunner_logger::warn;
use smoltcp::{
iface::{SocketHandle, SocketSet},
socket::{Socket, tcp, udp},
+1 -1
View File
@@ -92,7 +92,7 @@ impl SocketProvider for SmolSocketFactory {
socket
}
fn reconfigure_tcp(&self, socket: &mut tcp::Socket, profile: TrafficProfile) {
fn reconfigure_tcp(&self, socket: &mut tcp::Socket, _profile: TrafficProfile) {
socket.set_nagle_enabled(false);
socket.set_ack_delay(None);
+1 -1
View File
@@ -4,7 +4,7 @@ use std::{
ops::{Deref, DerefMut},
sync::{
Arc, LazyLock, Mutex,
atomic::{AtomicBool, AtomicU64, AtomicUsize, Ordering},
atomic::{AtomicBool, AtomicU64, Ordering},
},
time::Instant as StdInstant,
};