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

style(policy-server): Run clippy

This commit is contained in:
nexy7574 2025-07-19 23:54:07 +01:00 committed by Jade Ellis
parent 58afce3ba3
commit b6c3c6f93c
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

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(());
}