From a85488b11d70f5a3ad7f8f58b422eb05e9348a89 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sat, 28 Jan 2023 22:02:26 +0900 Subject: [PATCH] cli: pretty-print "debug template" output Since a parsed tree is deeply nested, it's difficult to read as a one-line string. --- src/commands/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index d5898b917..13c5fb2f1 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -2918,7 +2918,7 @@ fn cmd_debug( crate::template_parser::Rule::template, &template_matches.template, ); - writeln!(ui, "{parse:?}")?; + writeln!(ui, "{parse:#?}")?; } DebugCommands::Index(_index_matches) => { let workspace_command = command.workspace_helper(ui)?;