Skip to content

Commit aff76e0

Browse files
committed
fix clippy feature soundness lints
1 parent 637fd0d commit aff76e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/yew/src/html/component/scope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ mod feat_csr {
483483
use crate::scheduler;
484484

485485
impl AnyScope {
486-
#[cfg(test)]
486+
#[cfg(all(test, target_arch = "wasm32"))]
487487
pub(crate) fn test() -> Self {
488488
Self {
489489
type_id: TypeId::of::<()>(),

packages/yew/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ mod app_handle;
297297
mod renderer;
298298

299299
#[cfg(feature = "csr")]
300-
#[cfg(test)]
300+
#[cfg(all(test, target_arch = "wasm32"))]
301301
mod tests;
302302

303303
/// The module that contains all events available in the framework.

0 commit comments

Comments
 (0)