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

@@ -22,7 +22,7 @@ use super::check_room_id;
skip_all,
fields(%origin),
)]
#[allow(clippy::type_complexity)]
#[expect(clippy::type_complexity)]
pub(super) async fn fetch_prev<'a, Events>(
&self,
origin: &ServerName,

View File

@@ -12,7 +12,7 @@ use tuwunel_core::{
};
#[implement(super::Service)]
#[allow(clippy::too_many_arguments)]
#[expect(clippy::too_many_arguments)]
#[tracing::instrument(
name = "prev",
level = INFO_SPAN_LEVEL,

View File

@@ -42,7 +42,7 @@ pub struct CachedSpaceHierarchySummary {
summary: SpaceHierarchyParentSummary,
}
#[allow(clippy::large_enum_variant)]
#[expect(clippy::large_enum_variant)]
pub enum SummaryAccessibility {
Accessible(SpaceHierarchyParentSummary),
Inaccessible,

View File

@@ -365,7 +365,7 @@ pub fn set_room_state(
/// This fetches auth events from the current state.
#[implement(Service)]
#[allow(clippy::too_many_arguments)]
#[expect(clippy::too_many_arguments)]
#[tracing::instrument(skip(self, content), level = "debug")]
pub async fn get_auth_events(
&self,

View File

@@ -30,7 +30,7 @@ use tuwunel_database::{Json, serialize_key};
?membership_event,
),
)]
#[allow(clippy::too_many_arguments)]
#[expect(clippy::too_many_arguments)]
pub async fn update_membership(
&self,
room_id: &RoomId,
@@ -48,7 +48,7 @@ pub async fn update_membership(
//
// TODO: use futures to update remote profiles without blocking the membership
// update
#[allow(clippy::collapsible_if)]
#[expect(clippy::collapsible_if)]
if !self.services.globals.user_is_local(user_id) {
if !self.services.users.exists(user_id).await {
self.services