diff options
author | 2020-02-06 03:56:21 +0100 | |
---|---|---|
committer | 2020-02-06 03:56:21 +0100 | |
commit | ad500441afc355f0b8ca2a463248d350d74f0f20 (patch) | |
tree | 66d58de7d3ab822db12118e22554ad883da3cc30 /examples/todos/src | |
parent | e8316b208705910958152b2ef6c4c5d7110b4e6c (diff) | |
download | iced-ad500441afc355f0b8ca2a463248d350d74f0f20.tar.gz iced-ad500441afc355f0b8ca2a463248d350d74f0f20.tar.bz2 iced-ad500441afc355f0b8ca2a463248d350d74f0f20.zip |
Allow switching `executor::Default` with features
Diffstat (limited to 'examples/todos/src')
-rw-r--r-- | examples/todos/src/main.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 8262b537..a4009874 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -38,12 +38,7 @@ enum Message { } impl Application for Todos { - #[cfg(not(target_arch = "wasm32"))] - type Executor = iced_futures::executor::AsyncStd; - - #[cfg(target_arch = "wasm32")] - type Executor = iced_futures::executor::WasmBindgen; - + type Executor = iced::executor::Default; type Message = Message; fn new() -> (Todos, Command<Message>) { |