Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nbacquey committed Dec 11, 2024
1 parent 16d46f9 commit 5fb3642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions topiary-core/src/atom_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl AtomCollection {
root: &Node,
source: &[u8],
specified_leaf_nodes: HashSet<usize>,
comments: Vec<AnchoredComment>,
mut comments: Vec<AnchoredComment>,
) -> FormatterResult<Self> {
// Flatten the tree, from the root node, in a depth-first traversal
let dfs_nodes = dfs_flatten(root);
Expand All @@ -117,7 +117,7 @@ impl AtomCollection {
counter: 0,
};

atoms.collect_leafs_inner(root, source, &comments, &Vec::new(), 0)?;
atoms.collect_leafs_inner(root, source, &mut comments, &Vec::new(), 0)?;

Ok(atoms)
}
Expand Down

0 comments on commit 5fb3642

Please sign in to comment.