Skip to content

Commit fc97188

Browse files
committed
clippy
1 parent d8960b4 commit fc97188

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • testing/matrix-sdk-integration-testing/src/tests

testing/matrix-sdk-integration-testing/src/tests/timeline.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ async fn test_toggling_reaction() -> Result<()> {
207207
// Remote echo is added twice: one from the Send Queue because the event is sent
208208
// and inserted in the Event Cache and one from the Event Cache via the sync.
209209
// The difference is it gets a read receipt, that's why we get a second update.
210-
for i in 1..3 {
211-
let event = assert_event_is_updated!(timeline_updates[i], event_id, message_position);
210+
for timeline_update in timeline_updates.iter().skip(1) {
211+
let event = assert_event_is_updated!(timeline_update, event_id, message_position);
212212

213213
let reactions = event.content().reactions().cloned().unwrap_or_default();
214214
let reactions = reactions.get(&reaction_key).unwrap();

0 commit comments

Comments
 (0)