From ef6458c9cd565869db0d18257f1af603e9507966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 8 May 2020 11:07:08 +0200 Subject: [PATCH] matrix-sdk: Fix the feature flags for real this time. --- matrix_sdk/Cargo.toml | 7 +++++-- matrix_sdk_base/Cargo.toml | 12 +----------- matrix_sdk_base/src/base_client.rs | 2 +- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/matrix_sdk/Cargo.toml b/matrix_sdk/Cargo.toml index a9aed8fa..1da64e19 100644 --- a/matrix_sdk/Cargo.toml +++ b/matrix_sdk/Cargo.toml @@ -24,14 +24,17 @@ serde_json = "1.0.52" url = "2.1.1" uuid = { version = "0.8.1", features = ["v4"] } -matrix-sdk-base = { version = "0.1.0", path = "../matrix_sdk_base" } matrix-sdk-common = { version = "0.1.0", path = "../matrix_sdk_common" } -matrix-sdk-crypto = { version = "0.1.0", path = "../matrix_sdk_crypto", optional = true } # Misc dependencies thiserror = "1.0.16" tracing = "0.1.13" +[dependencies.matrix-sdk-base] +version = "0.1.0" +path = "../matrix_sdk_base" +default_features = false + [dependencies.tracing-futures] version = "0.2.4" default-features = false diff --git a/matrix_sdk_base/Cargo.toml b/matrix_sdk_base/Cargo.toml index 9056089d..240210c0 100644 --- a/matrix_sdk_base/Cargo.toml +++ b/matrix_sdk_base/Cargo.toml @@ -32,24 +32,14 @@ matrix-sdk-crypto = { path = "../matrix_sdk_crypto", optional = true } # Misc dependencies thiserror = "1.0.16" -tracing = "0.1.13" - -[dependencies.tracing-futures] -version = "0.2.4" -default-features = false -features = ["std", "std-future"] [dependencies.tokio] version = "0.2.20" default-features = false -features = ["sync", "time", "fs"] +features = ["sync", "fs"] [dev-dependencies] matrix-sdk-test = { version = "0.1.0", path = "../matrix_sdk_test" } tokio = { version = "0.2.20", features = ["rt-threaded", "macros"] } -ruma-identifiers = { version = "0.16.1", features = ["rand"] } -serde_json = "1.0.52" tracing-subscriber = "0.2.5" tempfile = "3.1.0" -mockito = "0.25.1" -lazy_static = "1.4.0" diff --git a/matrix_sdk_base/src/base_client.rs b/matrix_sdk_base/src/base_client.rs index 688b0d90..f0c4a2a5 100644 --- a/matrix_sdk_base/src/base_client.rs +++ b/matrix_sdk_base/src/base_client.rs @@ -268,8 +268,8 @@ impl Client { } pub(crate) async fn get_or_create_joined_room(&self, room_id: &RoomId) -> Arc> { - #[allow(clippy::or_fun_call)] let mut rooms = self.joined_rooms.write().await; + #[allow(clippy::or_fun_call)] rooms .entry(room_id.clone()) .or_insert(Arc::new(RwLock::new(Room::new(