From c23942d92d5b1dbeac2cde8f99b86a617d9dffc1 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Sat, 16 Nov 2024 21:34:43 -0800 Subject: [PATCH] wasm: Suppress unused code warning from tests/browser when not built for wasm. --- all-is-cubes-wasm/tests/browser/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/all-is-cubes-wasm/tests/browser/main.rs b/all-is-cubes-wasm/tests/browser/main.rs index f51ff38c2..590ecbbbb 100644 --- a/all-is-cubes-wasm/tests/browser/main.rs +++ b/all-is-cubes-wasm/tests/browser/main.rs @@ -2,6 +2,8 @@ //! //! These tests are usually run headless via `wasm-pack test --headless`. +#![cfg(target_family = "wasm")] + wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); mod js_bindings;