chore: Clippy fixes

This commit is contained in:
Ginger
2026-05-26 13:49:17 -04:00
committed by Ellis Git
parent 74841b6711
commit 30c9d6d2df
6 changed files with 12 additions and 17 deletions
+2 -4
View File
@@ -4,7 +4,7 @@ use conduwuit::{Err, Result};
use ruma::api::client::room::get_summary;
use service::rooms::summary::Accessibility;
use crate::Ruma;
use crate::{Ruma, router::ClientIdentity};
/// # `GET /_matrix/client/v1/room_summary/{roomIdOrAlias}`
///
@@ -29,9 +29,7 @@ pub(crate) async fn get_room_summary(
.rooms
.summary
.get_room_summary_for_user(
body.identity
.as_ref()
.map(|identity| identity.sender_user()),
body.identity.as_ref().map(ClientIdentity::sender_user),
&room_id,
&servers,
)