Skip to content

Commit 65072dd

Browse files
committed
chore: Use values() instead of iter() and discard the keys.
1 parent 73c27d8 commit 65072dd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates

crates/matrix-sdk-ui/src/timeline/tests/polls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async fn test_votes_after_end_are_discarded() {
9696
// Alice votes but it's too late, her vote won't count
9797
timeline.send_poll_response(&ALICE, vec!["id_up"], &poll_id).await;
9898
let results = timeline.poll_state().await.results();
99-
for (_, votes) in results.votes.iter() {
99+
for votes in results.votes.values() {
100100
assert!(votes.is_empty());
101101
}
102102
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ impl Room {
18151815
}
18161816
}
18171817
} else {
1818-
for (_, list) in content.iter_mut() {
1818+
for list in content.values_mut() {
18191819
list.retain(|room_id| *room_id != this_room_id);
18201820
}
18211821

0 commit comments

Comments
 (0)