Skip to content

Commit 15e6b81

Browse files
committed
chore(base): upgrade matrix-rust-sdk-base to edition 2024
1 parent bcb4ab4 commit 15e6b81

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

crates/matrix-sdk-base/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Damir Jelić <[email protected]>"]
33
description = "The base component to build a Matrix client library."
4-
edition = "2021"
4+
edition = "2024"
55
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
66
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
77
license = "Apache-2.0"

crates/matrix-sdk-base/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ impl BaseClient {
273273

274274
/// Get a stream of all the rooms changes, in addition to the existing
275275
/// rooms.
276-
pub fn rooms_stream(&self) -> (Vector<Room>, impl Stream<Item = Vec<VectorDiff<Room>>>) {
276+
pub fn rooms_stream(&self) -> (Vector<Room>, impl Stream<Item = Vec<VectorDiff<Room>>> + use<>) {
277277
self.state_store.rooms_stream()
278278
}
279279

crates/matrix-sdk-base/src/room/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ impl Room {
490490

491491
/// Get a `Stream` of loaded pinned events for this room.
492492
/// If no pinned events are found a single empty `Vec` will be returned.
493-
pub fn pinned_event_ids_stream(&self) -> impl Stream<Item = Vec<OwnedEventId>> {
493+
pub fn pinned_event_ids_stream(&self) -> impl Stream<Item = Vec<OwnedEventId>> + use<> {
494494
self.inner
495495
.subscribe()
496496
.map(|i| i.base_info.pinned_events.map(|c| c.pinned).unwrap_or_default())

crates/matrix-sdk-base/src/store/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ impl BaseStateStore {
312312

313313
/// Get a stream of all the rooms changes, in addition to the existing
314314
/// rooms.
315-
pub fn rooms_stream(&self) -> (Vector<Room>, impl Stream<Item = Vec<VectorDiff<Room>>>) {
315+
pub fn rooms_stream(&self) -> (Vector<Room>, impl Stream<Item = Vec<VectorDiff<Room>>> + use<>) {
316316
self.rooms.read().unwrap().stream()
317317
}
318318

crates/matrix-sdk-base/src/store/observable_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ where
125125
}
126126

127127
/// Get a [`Stream`] of the values.
128-
pub(crate) fn stream(&self) -> (Vector<V>, impl Stream<Item = Vec<VectorDiff<V>>>) {
128+
pub(crate) fn stream(&self) -> (Vector<V>, impl Stream<Item = Vec<VectorDiff<V>>> + use<K, V>) {
129129
self.values.subscribe().into_values_and_batched_stream()
130130
}
131131

0 commit comments

Comments
 (0)