style: Fix formatting/clippy issues
Some checks failed
Documentation / Build and Deploy Documentation (push) Has been skipped
Checks / Prefligit / prefligit (push) Failing after 3s
Release Docker Image / define-variables (push) Failing after 12s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Checks / Rust / Format (push) Failing after 6s
Checks / Rust / Clippy (push) Failing after 20s
Checks / Rust / Cargo Test (push) Failing after 16s

This commit is contained in:
Jade Ellis 2025-07-02 19:32:50 +01:00
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.")));
}