Fix: Clippy lint 'let_underscore_future'
This commit is contained in:
parent
818ae4977a
commit
0ff1061d52
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue