diff options
author | 2023-09-10 00:43:38 +0200 | |
---|---|---|
committer | 2023-09-10 00:43:38 +0200 | |
commit | 8aa7874ba9ba4a0e7cafb9a447a3db92e95aeb87 (patch) | |
tree | edd4e1fdbc112dd973134c15f79ca0471af0666c /examples/todos | |
parent | b8e5693a3089d728b4f8d4b3b0b7197202ebd732 (diff) | |
download | iced-8aa7874ba9ba4a0e7cafb9a447a3db92e95aeb87.tar.gz iced-8aa7874ba9ba4a0e7cafb9a447a3db92e95aeb87.tar.bz2 iced-8aa7874ba9ba4a0e7cafb9a447a3db92e95aeb87.zip |
Fix Wasm build of `todos` example
Diffstat (limited to 'examples/todos')
-rw-r--r-- | examples/todos/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 5d8936df..501bf67e 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -17,6 +17,7 @@ use uuid::Uuid; static INPUT_ID: Lazy<text_input::Id> = Lazy::new(text_input::Id::unique); pub fn main() -> iced::Result { + #[cfg(not(target_arch = "wasm32"))] tracing_subscriber::fmt::init(); Todos::run(Settings { |