Fix Wasm build of todos example
This commit is contained in:
parent
b8e5693a30
commit
8aa7874ba9
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue