From b8883cfcf54073ffb16fc29effa719415640adbc Mon Sep 17 00:00:00 2001 From: Kajetan Puchalski Date: Tue, 10 Sep 2024 03:49:19 +0100 Subject: [PATCH] ast/tree: Change trace prints to pretty-debug printing --- src/ast/tree.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ast/tree.rs b/src/ast/tree.rs index 39f7896..23c7702 100644 --- a/src/ast/tree.rs +++ b/src/ast/tree.rs @@ -112,7 +112,7 @@ impl FunctionDeclaration { body, }; - log::trace!("--- Parsed function declaration: {:?}", func); + log::trace!("--- Parsed function declaration: {:#?}", func); Ok(func) } } @@ -201,7 +201,7 @@ impl VariableDeclaration { expect_token(TokenKind::Semicolon, tokens)?; let result = Self { name: ident, init }; - log::trace!("-- Parsed declaration: {:?}", result); + log::trace!("-- Parsed declaration: {:#?}", result); Ok(result) } } @@ -309,7 +309,7 @@ impl Statement { } }; - log::trace!("-- Parsed statement: {:?}", result); + log::trace!("-- Parsed statement: {:#?}", result); Ok(result) } }