From b525491bd53af31355f9d1706cdcee5f9f8a72c0 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Fri, 7 Jul 2023 15:20:41 +0100 Subject: [PATCH] Fix warnings from CI --- crates/matrix-sdk-base/src/client.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/matrix-sdk-base/src/client.rs b/crates/matrix-sdk-base/src/client.rs index 1b334b7f9..dea15883c 100644 --- a/crates/matrix-sdk-base/src/client.rs +++ b/crates/matrix-sdk-base/src/client.rs @@ -563,7 +563,8 @@ impl BaseClient { changed_devices: &api::sync::sync_events::DeviceLists, one_time_keys_counts: &BTreeMap, unused_fallback_keys: Option<&[ruma::DeviceKeyAlgorithm]>, - changes: &mut StateChanges, + #[cfg(feature = "experimental-sliding-sync")] changes: &mut StateChanges, + #[cfg(not(feature = "experimental-sliding-sync"))] _changes: &mut StateChanges, ) -> Result>> { if let Some(o) = self.olm_machine().await.as_ref() { // Let the crypto machine handle the sync response, this @@ -585,6 +586,8 @@ impl BaseClient { self.decrypt_latest_events(&mut room, changes).await; } } + #[cfg(not(feature = "experimental-sliding-sync"))] + drop(room_key_updates); // Silence unused variable warning Ok(events) } else {