From c49ee7dedd054c45b6a10e864d5fb9459d0fa772 Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Mon, 9 Sep 2024 11:05:08 +0200 Subject: [PATCH] remove asmjs mentions --- examples2d/all_examples2.rs | 4 ++-- examples3d/all_examples3.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples2d/all_examples2.rs b/examples2d/all_examples2.rs index 30be6a8..b0d3390 100644 --- a/examples2d/all_examples2.rs +++ b/examples2d/all_examples2.rs @@ -23,7 +23,7 @@ fn demo_name_from_command_line() -> Option { None } -#[cfg(any(target_arch = "wasm32", target_arch = "asmjs"))] +#[cfg(target_arch = "wasm32")] fn demo_name_from_url() -> Option { let window = stdweb::web::window(); let hash = window.location()?.search().ok()?; @@ -34,7 +34,7 @@ fn demo_name_from_url() -> Option { } } -#[cfg(not(any(target_arch = "wasm32", target_arch = "asmjs")))] +#[cfg(not(target_arch = "wasm32"))] fn demo_name_from_url() -> Option { None } diff --git a/examples3d/all_examples3.rs b/examples3d/all_examples3.rs index 85bb0c0..15afac7 100644 --- a/examples3d/all_examples3.rs +++ b/examples3d/all_examples3.rs @@ -27,7 +27,7 @@ fn demo_name_from_command_line() -> Option { None } -#[cfg(any(target_arch = "wasm32", target_arch = "asmjs"))] +#[cfg(target_arch = "wasm32")] fn demo_name_from_url() -> Option { None // let window = stdweb::web::window(); @@ -39,7 +39,7 @@ fn demo_name_from_url() -> Option { // } } -#[cfg(not(any(target_arch = "wasm32", target_arch = "asmjs")))] +#[cfg(not(target_arch = "wasm32"))] fn demo_name_from_url() -> Option { None }