Skip to content

Commit 0e8e3d5

Browse files
committed
Reformat
1 parent 8b89d4f commit 0e8e3d5

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

crates/ark/src/lsp/symbols.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,8 @@ where
413413
{
414414
// Set end position for the section being closed
415415
if let Some(section) = active_sections.last_mut() {
416-
let pos = point_end_of_previous_row(
417-
child.start_position(),
418-
file.contents(db),
419-
);
416+
let pos =
417+
point_end_of_previous_row(child.start_position(), file.contents(db));
420418
section.end_position = Some(pos);
421419
}
422420
finalize_section(&mut active_sections, symbols, file, db)?;
@@ -794,14 +792,7 @@ mod tests {
794792
let node = file.tree_sitter(&db).root_node();
795793

796794
let mut symbols = Vec::new();
797-
collect_symbols(
798-
&mut CollectContext::new(),
799-
&node,
800-
&file,
801-
&db,
802-
&mut symbols,
803-
)
804-
.unwrap();
795+
collect_symbols(&mut CollectContext::new(), &node, &file, &db, &mut symbols).unwrap();
805796
symbols
806797
}
807798

0 commit comments

Comments
 (0)