We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
values()
iter()
1 parent 73c27d8 commit 65072ddCopy full SHA for 65072dd
2 files changed
crates/matrix-sdk-ui/src/timeline/tests/polls.rs
@@ -96,7 +96,7 @@ async fn test_votes_after_end_are_discarded() {
96
// Alice votes but it's too late, her vote won't count
97
timeline.send_poll_response(&ALICE, vec!["id_up"], &poll_id).await;
98
let results = timeline.poll_state().await.results();
99
- for (_, votes) in results.votes.iter() {
+ for votes in results.votes.values() {
100
assert!(votes.is_empty());
101
}
102
crates/matrix-sdk/src/room/mod.rs
@@ -1815,7 +1815,7 @@ impl Room {
1815
1816
1817
} else {
1818
- for (_, list) in content.iter_mut() {
+ for list in content.values_mut() {
1819
list.retain(|room_id| *room_id != this_room_id);
1820
1821
0 commit comments