Skip to content

Commit

Permalink
Add a header line to child list.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 committed Nov 14, 2023
1 parent 513ded0 commit 484243a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ impl Server {

async fn children_all(Extension(index): Extension<Arc<Index>>) -> ServerResult<String> {
log::info!("GET /children");
let mut result = String::new();
let mut result = "parent child\n".to_string();
for (parent, child) in index.get_children()? {
result += format!("{} {}\n", parent, child).as_str();
}
Expand Down

0 comments on commit 484243a

Please sign in to comment.