1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-29 03:08:31 +00:00

style(policy-server): Run clippy

This commit is contained in:
nexy7574 2025-07-19 23:54:07 +01:00
parent d7fa624fd2
commit 2d475b1220
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -11,7 +11,7 @@ use ruma::{
#[implement(super::Service)]
#[tracing::instrument(skip_all, level = "debug")]
pub async fn policyserv_check(&self, pdu: &PduEvent, room_id: &RoomId) -> Result {
if pdu.event_type().to_owned() == StateEventType::RoomPolicy.into() {
if *pdu.event_type() == StateEventType::RoomPolicy.into() {
debug!("Skipping spam check for policy server meta-event in room {room_id}");
return Ok(());
}