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