From df4b69666c146cf3de5d30ccf1cc8a8a48dcf7d4 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 8 Jan 2025 15:55:52 +0100 Subject: [PATCH] chore: Make Clippy and `wasm-pack` happy. --- crates/matrix-sdk-base/src/sliding_sync/mod.rs | 2 +- .../matrix-sdk-ui/tests/integration/timeline/sliding_sync.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/matrix-sdk-base/src/sliding_sync/mod.rs b/crates/matrix-sdk-base/src/sliding_sync/mod.rs index c9db56c8eb1..29024555cab 100644 --- a/crates/matrix-sdk-base/src/sliding_sync/mod.rs +++ b/crates/matrix-sdk-base/src/sliding_sync/mod.rs @@ -893,7 +893,7 @@ fn process_room_properties( } } -#[cfg(test)] +#[cfg(all(test, not(target_family = "wasm")))] mod tests { use std::collections::{BTreeMap, HashSet}; #[cfg(feature = "e2e-encryption")] diff --git a/crates/matrix-sdk-ui/tests/integration/timeline/sliding_sync.rs b/crates/matrix-sdk-ui/tests/integration/timeline/sliding_sync.rs index 75a11647970..f2fdc800df7 100644 --- a/crates/matrix-sdk-ui/tests/integration/timeline/sliding_sync.rs +++ b/crates/matrix-sdk-ui/tests/integration/timeline/sliding_sync.rs @@ -20,8 +20,8 @@ use assert_matches2::assert_let; use eyeball_im::{Vector, VectorDiff}; use futures_util::{pin_mut, FutureExt, Stream, StreamExt}; use matrix_sdk::{ - test_utils::{logged_in_client, logged_in_client_with_server}, - Client, SlidingSync, SlidingSyncList, SlidingSyncListBuilder, SlidingSyncMode, UpdateSummary, + test_utils::logged_in_client_with_server, Client, SlidingSync, SlidingSyncList, + SlidingSyncListBuilder, SlidingSyncMode, UpdateSummary, }; use matrix_sdk_test::{async_test, mocks::mock_encryption_state}; use matrix_sdk_ui::{