run nightly cargo fmt again
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
17e0384eeb
commit
de53ad83b2
11 changed files with 45 additions and 28 deletions
|
@ -267,8 +267,9 @@ pub(crate) async fn get_public_rooms_filtered_helper(
|
|||
let backwards = match characters.next() {
|
||||
| Some('n') => false,
|
||||
| Some('p') => true,
|
||||
| _ =>
|
||||
return Err(Error::BadRequest(ErrorKind::InvalidParam, "Invalid `since` token")),
|
||||
| _ => {
|
||||
return Err(Error::BadRequest(ErrorKind::InvalidParam, "Invalid `since` token"));
|
||||
},
|
||||
};
|
||||
|
||||
num_since = characters
|
||||
|
|
|
@ -197,11 +197,12 @@ pub(crate) async fn create_receipt_route(
|
|||
.read_receipt
|
||||
.private_read_set(&body.room_id, sender_user, count);
|
||||
},
|
||||
| _ =>
|
||||
| _ => {
|
||||
return Err!(Request(InvalidParam(warn!(
|
||||
"Received unknown read receipt type: {}",
|
||||
&body.receipt_type
|
||||
)))),
|
||||
))));
|
||||
},
|
||||
}
|
||||
|
||||
Ok(create_receipt::v3::Response {})
|
||||
|
|
|
@ -32,8 +32,9 @@ pub(crate) async fn get_hierarchy_route(
|
|||
{
|
||||
| None => Err!(Request(NotFound("The requested room was not found"))),
|
||||
|
||||
| Some(SummaryAccessibility::Inaccessible) =>
|
||||
Err!(Request(NotFound("The requested room is inaccessible"))),
|
||||
| Some(SummaryAccessibility::Inaccessible) => {
|
||||
Err!(Request(NotFound("The requested room is inaccessible")))
|
||||
},
|
||||
|
||||
| Some(SummaryAccessibility::Accessible(room)) => {
|
||||
let (children, inaccessible_children) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue