mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01:24 +01:00
stop putting comments and code on the same line
This commit is contained in:
parent
0915aba44c
commit
1911ad34d9
35 changed files with 305 additions and 142 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue