From 79b7bab68cec6aa2e0e5813736cf367b42ab9ddf Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Thu, 3 Oct 2024 13:07:36 +0200 Subject: [PATCH] suppress warning for stdio rpc server --- deltachat-rpc-server/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deltachat-rpc-server/src/main.rs b/deltachat-rpc-server/src/main.rs index fc0196b68c..0d72836f9e 100644 --- a/deltachat-rpc-server/src/main.rs +++ b/deltachat-rpc-server/src/main.rs @@ -35,6 +35,7 @@ async fn main() { std::process::exit(if r.is_ok() { 0 } else { 1 }); } +#[allow(unexpected_cfgs)] async fn main_impl() -> Result<()> { let mut args = env::args_os(); let _program_name = args.next().context("no command line arguments found")?; @@ -73,6 +74,7 @@ async fn main_impl() -> Result<()> { .with_writer(std::io::stderr) .with_filter(EnvFilter::from_default_env()), ); + #[cfg(tokio_unstable)] { subscribers.with(console_subscriber::spawn())