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:
parent
143cb55ac8
commit
293e7243b3
5 changed files with 22 additions and 10 deletions
|
@ -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(),
|
||||
)?;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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.")));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue