1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-08-07 15:20:55 +00:00

style: Fix formatting/clippy issues

This commit is contained in:
Jade Ellis 2025-07-02 19:32:50 +01:00
parent 143cb55ac8
commit 293e7243b3
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
5 changed files with 22 additions and 10 deletions

View file

@ -348,9 +348,11 @@ where
self.services.search.index_pdu(shortroomid, &pdu_id, &body);
if self.services.admin.is_admin_command(pdu, &body).await {
self.services
.admin
.command_with_sender(body, Some((pdu.event_id()).into()), pdu.sender.clone().into())?;
self.services.admin.command_with_sender(
body,
Some((pdu.event_id()).into()),
pdu.sender.clone().into(),
)?;
}
}
},

View file

@ -110,7 +110,7 @@ pub async fn create_hash_and_sign_event(
// so any other events with that same depth are illegal.
warn!(
"Had unsafe depth {depth} when creating non-state event in {room_id}. Cowardly \
aborting"
aborting"
);
return Err!(Request(Unknown("Unsafe depth for non-state event.")));
}