diff options
author | 2022-01-14 13:50:30 +0700 | |
---|---|---|
committer | 2022-01-14 13:50:30 +0700 | |
commit | b7bc169120d3447ead238e974007027a5152d341 (patch) | |
tree | c0c3f56883c7df0f05acdc602b21c7a0f100cc56 /src/executor.rs | |
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 'src/executor.rs')
-rw-r--r-- | src/executor.rs | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/executor.rs b/src/executor.rs index 9f3656b1..c7166c68 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -7,30 +7,19 @@ pub use platform::Default; mod platform { use iced_futures::{executor, futures}; - #[cfg(feature = "tokio_old")] - type Executor = executor::TokioOld; - - #[cfg(all(feature = "tokio", not(feature = "tokio_old")))] + #[cfg(feature = "tokio")] type Executor = executor::Tokio; - #[cfg(all( - feature = "async-std", - not(any(feature = "tokio_old", feature = "tokio")), - ))] + #[cfg(all(feature = "async-std", not(feature = "tokio"),))] type Executor = executor::AsyncStd; #[cfg(all( feature = "smol", - not(any( - feature = "tokio_old", - feature = "tokio", - feature = "async-std" - )), + not(any(feature = "tokio", feature = "async-std")), ))] type Executor = executor::Smol; #[cfg(not(any( - feature = "tokio_old", feature = "tokio", feature = "async-std", feature = "smol", |