matrix-sdk: Fix the feature flags for real this time.
This commit is contained in:
parent
f5ec1f93ed
commit
ef6458c9cd
3 changed files with 7 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -268,8 +268,8 @@ impl Client {
|
|||
}
|
||||
|
||||
pub(crate) async fn get_or_create_joined_room(&self, room_id: &RoomId) -> Arc<RwLock<Room>> {
|
||||
#[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(
|
||||
|
|
Loading…
Reference in a new issue