We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30dfd30 commit 78ff319Copy full SHA for 78ff319
crates/matrix-sdk-ui/tests/integration/timeline/pagination.rs
@@ -276,8 +276,8 @@ async fn test_skip_count_is_taken_into_account_in_pagination_status() {
276
assert_let_timeout!(Some(timeline_updates) = timeline_stream.next());
277
assert_eq!(timeline_updates.len(), 11);
278
279
- for i in 0..9 {
280
- assert_let!(VectorDiff::PushFront { value: message } = &timeline_updates[i]);
+ for item in timeline_updates.iter().take(9) {
+ assert_let!(VectorDiff::PushFront { value: message } = item);
281
assert_let!(Some(msg) = message.as_event().unwrap().content().as_message());
282
assert_let!(MessageType::Text(text) = msg.msgtype());
283
assert!(text.body.starts_with("hello world"));
0 commit comments