Fix Wasm build of todos example

This commit is contained in:
Héctor Ramón Jiménez 2023-09-10 00:43:38 +02:00
parent b8e5693a30
commit 8aa7874ba9
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -17,6 +17,7 @@ use uuid::Uuid;
static INPUT_ID: Lazy<text_input::Id> = Lazy::new(text_input::Id::unique); static INPUT_ID: Lazy<text_input::Id> = Lazy::new(text_input::Id::unique);
pub fn main() -> iced::Result { pub fn main() -> iced::Result {
#[cfg(not(target_arch = "wasm32"))]
tracing_subscriber::fmt::init(); tracing_subscriber::fmt::init();
Todos::run(Settings { Todos::run(Settings {