chore(swarm): Remove deprecated functions (#3170)

Remove functions deprecated in 0.41.0.
This commit is contained in:
Hannes
2022-12-09 15:44:08 +01:00
committed by GitHub
parent 1c2712c1bc
commit 8cb79f4c79
22 changed files with 47 additions and 95 deletions

View File

@ -39,7 +39,7 @@ pub struct TokioExecutor;
))]
impl Executor for TokioExecutor {
fn exec(&self, future: Pin<Box<dyn Future<Output = ()> + Send>>) {
let _ = tokio::spawn(future);
tokio::spawn(future);
}
}
@ -56,7 +56,7 @@ pub struct AsyncStdExecutor;
))]
impl Executor for AsyncStdExecutor {
fn exec(&self, future: Pin<Box<dyn Future<Output = ()> + Send>>) {
let _ = async_std::task::spawn(future);
async_std::task::spawn(future);
}
}