Skip to content

Commit 27615b1

Browse files
committed
sdk-ui: fix and add tests
1 parent 2db337a commit 27615b1

5 files changed

Lines changed: 347 additions & 24 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ impl PinnedEventsLoader {
6363
.rev()
6464
.collect();
6565

66-
// Use semaphore to limit the number of concurrent requests since RequestConfig can only
67-
// set that value for the whole HttpClient
66+
// Use semaphore to limit the number of concurrent requests since RequestConfig
67+
// can only set that value for the whole HttpClient
6868
let semaphore = Arc::new(Semaphore::new(MAX_CONCURRENT_REQUESTS));
6969

7070
if pinned_event_ids.is_empty() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async fn mock_context(
8484
}
8585

8686
/// Mocks the /event endpoint
87-
#[allow(clippy::too_many_arguments)] // clippy you've got such a fixed mindset
87+
#[allow(clippy::too_many_arguments, dead_code)] // clippy you've got such a fixed mindset
8888
async fn mock_event(
8989
server: &MockServer,
9090
room_id: &RoomId,

0 commit comments

Comments
 (0)