mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-06 08:14:07 +00:00
chore: suppress warnings
This commit is contained in:
@@ -3,6 +3,7 @@ use cfg_if::cfg_if;
|
||||
cfg_if! {
|
||||
if #[cfg(unix)] {
|
||||
mod unix;
|
||||
#[allow(unused_imports)]
|
||||
pub use self::unix::*;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ use cfg_if::cfg_if;
|
||||
cfg_if! {
|
||||
if #[cfg(target_os = "macos")] {
|
||||
mod macos;
|
||||
#[allow(unused_imports)]
|
||||
pub use self::macos::*;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1164,6 +1164,7 @@ async fn get_online_config_servers(
|
||||
}
|
||||
|
||||
impl ServerReloader {
|
||||
#[cfg_attr(not(any(unix, feature = "local-online-config")), allow(dead_code))]
|
||||
async fn run_once(&self) -> Result<(), Box<dyn std::error::Error>> {
|
||||
let start_time = Instant::now();
|
||||
|
||||
@@ -1271,6 +1272,7 @@ impl ServerReloader {
|
||||
async fn launch_reload_server_task(self) {
|
||||
let arc_self = Arc::new(self);
|
||||
|
||||
#[allow(unused_mut)]
|
||||
let mut futs: Vec<BoxFuture<()>> = Vec::new();
|
||||
|
||||
#[cfg(unix)]
|
||||
|
||||
Reference in New Issue
Block a user