cargo fmt
Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
parent
3494d7759e
commit
d7061e6984
6 changed files with 31 additions and 22 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue