diff options
| author | 2022-01-14 13:50:30 +0700 | |
|---|---|---|
| committer | 2022-01-14 13:50:30 +0700 | |
| commit | b7bc169120d3447ead238e974007027a5152d341 (patch) | |
| tree | c0c3f56883c7df0f05acdc602b21c7a0f100cc56 /futures/src/executor | |
| parent | 15a13a76b4b0534d08afc0328b90267048e41b9d (diff) | |
| parent | 34adeaa0810b3f36e47c2b63b0a09401a3cb878b (diff) | |
| download | iced-b7bc169120d3447ead238e974007027a5152d341.tar.gz iced-b7bc169120d3447ead238e974007027a5152d341.tar.bz2 iced-b7bc169120d3447ead238e974007027a5152d341.zip | |
Merge pull request #1195 from iced-rs/fix/vulnerabilities
Fix `cargo-audit` vulnerabilities
Diffstat (limited to '')
| -rw-r--r-- | futures/src/executor.rs | 6 | ||||
| -rw-r--r-- | futures/src/executor/tokio_old.rs | 21 | 
2 files changed, 0 insertions, 27 deletions
| diff --git a/futures/src/executor.rs b/futures/src/executor.rs index b35b5bc1..23682f32 100644 --- a/futures/src/executor.rs +++ b/futures/src/executor.rs @@ -7,9 +7,6 @@ mod thread_pool;  #[cfg(all(not(target_arch = "wasm32"), feature = "tokio"))]  mod tokio; -#[cfg(all(not(target_arch = "wasm32"), feature = "tokio_old"))] -mod tokio_old; -  #[cfg(all(not(target_arch = "wasm32"), feature = "async-std"))]  mod async_std; @@ -27,9 +24,6 @@ pub use thread_pool::ThreadPool;  #[cfg(all(not(target_arch = "wasm32"), feature = "tokio"))]  pub use self::tokio::Tokio; -#[cfg(all(not(target_arch = "wasm32"), feature = "tokio_old"))] -pub use self::tokio_old::TokioOld; -  #[cfg(all(not(target_arch = "wasm32"), feature = "async-std"))]  pub use self::async_std::AsyncStd; diff --git a/futures/src/executor/tokio_old.rs b/futures/src/executor/tokio_old.rs deleted file mode 100644 index d64729fa..00000000 --- a/futures/src/executor/tokio_old.rs +++ /dev/null @@ -1,21 +0,0 @@ -use crate::Executor; - -use futures::Future; - -/// An old `tokio` runtime. -#[cfg_attr(docsrs, doc(cfg(feature = "tokio_old")))] -pub type TokioOld = tokio_old::runtime::Runtime; - -impl Executor for TokioOld { -    fn new() -> Result<Self, futures::io::Error> { -        tokio_old::runtime::Runtime::new() -    } - -    fn spawn(&self, future: impl Future<Output = ()> + Send + 'static) { -        let _ = tokio_old::runtime::Runtime::spawn(self, future); -    } - -    fn enter<R>(&self, f: impl FnOnce() -> R) -> R { -        tokio_old::runtime::Runtime::enter(self, f) -    } -} | 
