Skip to content

Commit

Permalink
fix: allow unused_mut on non-linux platform
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Apr 14, 2024
1 parent a5d71a2 commit 5a75db8
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@ use std::{
time::Duration,
};

use shadowsocks::{
net::ConnectOpts,
ServerConfig,
};
use shadowsocks::{net::ConnectOpts, ServerConfig};
use tokio::sync::Mutex;

use crate::{
config::ServerInstanceConfig,
local::context::ServiceContext,
};
use crate::{config::ServerInstanceConfig, local::context::ServiceContext};

use super::server_stat::{Score, ServerStat};

Expand Down Expand Up @@ -82,8 +76,9 @@ impl ServerIdent {
context: Arc<ServiceContext>,
svr_cfg: ServerInstanceConfig,
max_server_rtt: Duration,
check_window: Duration
check_window: Duration,
) -> ServerIdent {
#[allow(unused_mut)]
let mut connect_opts = context.connect_opts_ref().clone();

#[cfg(any(target_os = "linux", target_os = "android"))]
Expand Down

0 comments on commit 5a75db8

Please sign in to comment.