Skip to content

Commit f1600e4

Browse files
committed
fix(cli): apply rustfmt to cli_reference.rs
Made-with: Cursor
1 parent 4bd0dec commit f1600e4

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

crates/navigator-cli/src/cli_reference.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ fn write_tree_node(cmd: &Command, out: &mut String, prefix: &str, is_last: bool)
8888

8989
writeln!(out, "{prefix}{connector}{name}{positionals}").unwrap();
9090

91-
let children: Vec<_> = cmd
92-
.get_subcommands()
93-
.filter(|c| !c.is_hide_set())
94-
.collect();
91+
let children: Vec<_> = cmd.get_subcommands().filter(|c| !c.is_hide_set()).collect();
9592

9693
for (i, child) in children.iter().enumerate() {
9794
write_tree_node(child, out, &child_prefix, i == children.len() - 1);
@@ -167,11 +164,7 @@ fn write_all_commands(root: &Command, out: &mut String, root_name: &str) {
167164
.collect();
168165

169166
for child in &children {
170-
write_leaf_command(
171-
child,
172-
out,
173-
&format!("{root_name} {}", group.get_name()),
174-
);
167+
write_leaf_command(child, out, &format!("{root_name} {}", group.get_name()));
175168
}
176169
}
177170

0 commit comments

Comments
 (0)