Skip to content

Commit d23eae2

Browse files
jplattepoljar
authored andcommitted
refactor(ui): Inline a variable
1 parent 52090bb commit d23eae2

File tree

1 file changed

+1
-3
lines changed
  • crates/matrix-sdk-ui/src/timeline/controller

1 file changed

+1
-3
lines changed

crates/matrix-sdk-ui/src/timeline/controller/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,7 @@ impl<P: RoomDataProvider, D: Decryptor> TimelineController<P, D> {
584584
Vector<Arc<TimelineItem>>,
585585
impl Stream<Item = VectorDiff<Arc<TimelineItem>>> + SendOutsideWasm,
586586
) {
587-
let state = self.state.read().await;
588-
589-
state.items.subscribe().into_values_and_stream()
587+
self.state.read().await.items.subscribe().into_values_and_stream()
590588
}
591589

592590
pub(super) async fn subscribe(&self) -> (Vector<Arc<TimelineItem>>, TimelineSubscriber) {

0 commit comments

Comments
 (0)