From 484243a502a8c06882814c36c0b2dc47a6f50350 Mon Sep 17 00:00:00 2001 From: Greg Martin Date: Tue, 14 Nov 2023 17:02:18 +0000 Subject: [PATCH] Add a header line to child list. --- src/subcommand/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index 8cc4c60f2b..e2b765e154 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -501,7 +501,7 @@ impl Server { async fn children_all(Extension(index): Extension>) -> ServerResult { 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(); }