From 7eb34a56f60d4474a57451a6f6a7edf10ae5abf9 Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Thu, 3 Oct 2024 11:50:26 +0200 Subject: [PATCH] attempt at suppressing unknown cfg warnings in deltachat_ffi --- src/tools.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools.rs b/src/tools.rs index 90010ae99..96eff604b 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -755,6 +755,7 @@ macro_rules! spawn_named_task { Fut: ::std::future::Future + Send + 'static, Fut::Output: Send + 'static, { + #[allow(unexpected_cfgs)] #[cfg(tokio_unstable)] { ::tokio::task::Builder::new() @@ -762,6 +763,7 @@ macro_rules! spawn_named_task { .spawn(future) .expect("Failed to spawn task") } + #[allow(unexpected_cfgs)] #[cfg(not(tokio_unstable))] { ::tokio::task::spawn(future) @@ -818,6 +820,7 @@ macro_rules! spawn_named_blocking_task { Fut: FnOnce() -> ReturnType + Send + 'static, ReturnType: Send + 'static, { + #[allow(unexpected_cfgs)] #[cfg(tokio_unstable)] { ::tokio::task::Builder::new() @@ -825,6 +828,7 @@ macro_rules! spawn_named_blocking_task { .spawn_blocking(future) .expect("Failed to spawn task") } + #[allow(unexpected_cfgs)] #[cfg(not(tokio_unstable))] { ::tokio::task::spawn_blocking(future)