Skip to content

Commit 8ad2a8a

Browse files
committed
clip all the py
1 parent fd6e21e commit 8ad2a8a

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

bindings/matrix-sdk-ffi/src/room.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ impl Room {
191191
}
192192

193193
let timeline = match builder
194-
.with_focus(TimelineFocus::Event {
195-
target: parsed_event_id,
196-
num_context_events: num_context_events.into(),
197-
})
194+
.with_focus(TimelineFocus::Event { target: parsed_event_id, num_context_events })
198195
.build()
199196
.await
200197
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ impl<P: RoomDataProvider> TimelineInner<P> {
305305
TimelineFocusData::Event { event_id, paginator, num_context_events } => {
306306
// Start a /context request, and append the results (in order) to the timeline.
307307
let start_from_result = paginator
308-
.start_from(&event_id, (*num_context_events).into())
308+
.start_from(event_id, (*num_context_events).into())
309309
.await
310310
.map_err(PaginationError::Paginator)?;
311311

crates/matrix-sdk-ui/src/timeline/pagination.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl super::Timeline {
3232
.live_paginate_backwards(PaginationOptions::until_num_items(num_events, 20))
3333
.await?)
3434
} else {
35-
Ok(self.focused_paginate_backwards(num_events.into()).await?)
35+
Ok(self.focused_paginate_backwards(num_events).await?)
3636
}
3737
}
3838

crates/matrix-sdk-ui/tests/integration/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ async fn mock_sync(server: &MockServer, response_body: impl Serialize, since: Op
5656
///
5757
/// Note: pass `events_before` in the normal order, I'll revert the order for
5858
/// you.
59+
#[allow(clippy::too_many_arguments)] // clippy you've got such a fixed mindset
5960
async fn mock_context(
6061
server: &MockServer,
6162
room_id: &RoomId,
@@ -78,7 +79,7 @@ async fn mock_context(
7879
"start": prev_batch_token,
7980
"end": next_batch_token
8081
})))
81-
.mount(&server)
82+
.mount(server)
8283
.await;
8384
}
8485

@@ -104,7 +105,7 @@ async fn mock_messages(
104105
"state": state,
105106
})))
106107
.expect(1)
107-
.mount(&server)
108+
.mount(server)
108109
.await;
109110
}
110111

0 commit comments

Comments
 (0)