cargo fmt

Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
girlbossceo 2023-07-29 14:30:48 +00:00
parent 3494d7759e
commit d7061e6984
6 changed files with 31 additions and 22 deletions

View file

@ -955,7 +955,8 @@ pub async fn get_event_route(
.get_pdu_json(&body.event_id)?
.ok_or({
warn!("Event not found, event ID: {:?}", &body.event_id);
Error::BadRequest(ErrorKind::NotFound, "Event not found.")})?;
Error::BadRequest(ErrorKind::NotFound, "Event not found.")
})?;
let room_id_str = event
.get("room_id")
@ -1197,7 +1198,8 @@ pub async fn get_event_authorization_route(
.get_pdu_json(&body.event_id)?
.ok_or({
warn!("Event not found, event ID: {:?}", &body.event_id);
Error::BadRequest(ErrorKind::NotFound, "Event not found.")})?;
Error::BadRequest(ErrorKind::NotFound, "Event not found.")
})?;
let room_id_str = event
.get("room_id")