Fix: Clippy lint 'let_underscore_future'

This commit is contained in:
13r0ck 2023-01-27 13:16:26 -07:00
parent 818ae4977a
commit 0ff1061d52
2 changed files with 2 additions and 0 deletions

View file

@ -10,6 +10,7 @@ impl crate::Executor for Executor {
Ok(Self)
}
#[allow(clippy::let_underscore_future)]
fn spawn(&self, future: impl Future<Output = ()> + Send + 'static) {
let _ = async_std::task::spawn(future);
}

View file

@ -9,6 +9,7 @@ impl crate::Executor for Executor {
tokio::runtime::Runtime::new()
}
#[allow(clippy::let_underscore_future)]
fn spawn(&self, future: impl Future<Output = ()> + Send + 'static) {
let _ = tokio::runtime::Runtime::spawn(self, future);
}