clippy allow -> expect
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user