stop putting comments and code on the same line

This commit is contained in:
Charles Hall 2024-05-15 15:40:56 -07:00
parent 0915aba44c
commit 1911ad34d9
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
35 changed files with 305 additions and 142 deletions

View file

@ -74,7 +74,8 @@ pub(crate) async fn search_events_route(
"Invalid next_batch token.",
))
}
None => 0, // Default to the start
// Default to the start
None => 0,
};
let mut results = Vec::new();
@ -133,10 +134,12 @@ pub(crate) async fn search_events_route(
Ok(search_events::v3::Response::new(ResultCategories {
room_events: ResultRoomEvents {
count: None,
groups: BTreeMap::new(), // TODO
// TODO
groups: BTreeMap::new(),
next_batch,
results,
state: BTreeMap::new(), // TODO
// TODO
state: BTreeMap::new(),
highlights: search_criteria
.search_term
.split_terminator(|c: char| !c.is_alphanumeric())