chore: suppress warnings

This commit is contained in:
ty
2024-05-13 14:43:05 +08:00
parent 562e3deb1d
commit 62867b3f3e
3 changed files with 4 additions and 0 deletions
@@ -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::*;
}
}
+2
View File
@@ -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)]