1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-31 20:28:31 +00:00

run nightly cargo fmt again

Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
June Clementine Strawberry 2025-03-02 23:15:05 -05:00
parent 17e0384eeb
commit de53ad83b2
No known key found for this signature in database
11 changed files with 45 additions and 28 deletions

View file

@ -58,10 +58,11 @@ pub(super) async fn fetch_state(
| hash_map::Entry::Vacant(v) => {
v.insert(pdu.event_id.clone());
},
| hash_map::Entry::Occupied(_) =>
| hash_map::Entry::Occupied(_) => {
return Err!(Database(
"State event's type and state_key combination exists multiple times.",
)),
));
},
}
}

View file

@ -56,10 +56,11 @@ pub(super) async fn handle_outlier_pdu<'a>(
obj
},
| Err(e) =>
| Err(e) => {
return Err!(Request(InvalidParam(debug_error!(
"Signature verification failed for {event_id}: {e}"
)))),
))));
},
};
// Now that we have checked the signature and hashes we can add the eventID and

View file

@ -109,7 +109,7 @@ pub async fn get_summary_and_children_local(
{
| None => (), // cache miss
| Some(None) => return Ok(None),
| Some(Some(cached)) =>
| Some(Some(cached)) => {
return Ok(Some(
if self
.is_accessible_child(
@ -124,7 +124,8 @@ pub async fn get_summary_and_children_local(
} else {
SummaryAccessibility::Inaccessible
},
)),
));
},
}
let children_pdus: Vec<_> = self

View file

@ -18,8 +18,9 @@ pub async fn get_event_keys(
let required = match required_keys(object, version) {
| Ok(required) => required,
| Err(e) =>
return Err!(BadServerResponse("Failed to determine keys required to verify: {e}")),
| Err(e) => {
return Err!(BadServerResponse("Failed to determine keys required to verify: {e}"));
},
};
let batch = required