mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 00:31:35 +00:00
chore(swarm): Remove deprecated functions (#3170)
Remove functions deprecated in 0.41.0.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user