clippy allow -> expect

This commit is contained in:
dasha_uwu
2026-01-22 21:48:41 +05:00
committed by Jason Volk
parent fbedd713ca
commit 0c9a3abb71
91 changed files with 126 additions and 166 deletions

View File

@@ -525,7 +525,6 @@ async fn process_presence_updates(
full = %full_state,
),
)]
#[allow(clippy::too_many_arguments)]
async fn handle_left_room(
services: &Services,
since: u64,
@@ -744,7 +743,7 @@ async fn load_left_room(
room_id = ?room_id,
),
)]
#[allow(clippy::too_many_arguments)]
#[expect(clippy::too_many_arguments)]
async fn load_joined_room(
services: &Services,
sender_user: &UserId,
@@ -1163,7 +1162,7 @@ async fn load_joined_room(
cs = %current_shortstatehash,
)
)]
#[allow(clippy::too_many_arguments)]
#[expect(clippy::too_many_arguments)]
async fn calculate_state_changes<'a>(
services: &Services,
sender_user: &UserId,

View File

@@ -21,7 +21,7 @@ pub(super) async fn filter_room(
room_id: &RoomId,
membership: Option<&MembershipState>,
) -> bool {
#[allow(clippy::match_same_arms)] // helps readability
#[expect(clippy::match_same_arms)] // helps readability
let match_invite = filter
.is_invite
.map_async(async |is_invite| match (membership, is_invite) {

View File

@@ -73,7 +73,6 @@ pub(super) async fn handle(
skip_all,
fields(room_id, roomsince)
)]
#[allow(clippy::too_many_arguments)]
async fn handle_room(
SyncInfo { services, sender_user, .. }: SyncInfo<'_>,
conn: &Connection,
@@ -360,7 +359,6 @@ async fn handle_room(
}
#[tracing::instrument(name = "heroes", level = "trace", skip_all)]
#[allow(clippy::type_complexity)]
async fn calculate_heroes(
services: &Services,
sender_user: &UserId,