From 4a8cfad7c5d060f3c1b61c997bdc984c93e19023 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Mon, 4 Nov 2024 13:08:50 -0500 Subject: [PATCH] chore(ci): suppress warnings about unused code in example tests (#3193) --- examples/counter/tests/web.rs | 2 ++ examples/counter_without_macros/tests/web.rs | 2 ++ examples/counters/tests/web.rs | 2 ++ examples/directives/tests/web.rs | 2 ++ examples/portal/tests/web.rs | 2 ++ 5 files changed, 10 insertions(+) diff --git a/examples/counter/tests/web.rs b/examples/counter/tests/web.rs index ada705e6e..2327be35f 100644 --- a/examples/counter/tests/web.rs +++ b/examples/counter/tests/web.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use counter::*; use leptos::mount::mount_to; use leptos::prelude::*; diff --git a/examples/counter_without_macros/tests/web.rs b/examples/counter_without_macros/tests/web.rs index bbcfd424e..ef219bf2f 100644 --- a/examples/counter_without_macros/tests/web.rs +++ b/examples/counter_without_macros/tests/web.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use counter_without_macros::counter; use leptos::{prelude::*, task::tick}; use pretty_assertions::assert_eq; diff --git a/examples/counters/tests/web.rs b/examples/counters/tests/web.rs index dafb9e498..6511b1892 100644 --- a/examples/counters/tests/web.rs +++ b/examples/counters/tests/web.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use wasm_bindgen::JsCast; use wasm_bindgen_test::*; diff --git a/examples/directives/tests/web.rs b/examples/directives/tests/web.rs index 562542dc3..19a844547 100644 --- a/examples/directives/tests/web.rs +++ b/examples/directives/tests/web.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use directives::App; use leptos::{prelude::*, task::tick}; use wasm_bindgen::JsCast; diff --git a/examples/portal/tests/web.rs b/examples/portal/tests/web.rs index 5b312e77b..ac76599cd 100644 --- a/examples/portal/tests/web.rs +++ b/examples/portal/tests/web.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use portal::App; use wasm_bindgen::JsCast; use wasm_bindgen_test::*;