From e72cd4600e4c9633673998e03ad639c5e674737d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 9 Nov 2020 14:09:49 +0100 Subject: Fix debug for SyntaxRewriter --- crates/syntax/src/algo.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/syntax/src/algo.rs b/crates/syntax/src/algo.rs index 9dc7182bd..30adb7217 100644 --- a/crates/syntax/src/algo.rs +++ b/crates/syntax/src/algo.rs @@ -331,7 +331,10 @@ pub struct SyntaxRewriter<'a> { impl fmt::Debug for SyntaxRewriter<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("SyntaxRewriter").field("replacements", &self.replacements).finish() + f.debug_struct("SyntaxRewriter") + .field("replacements", &self.replacements) + .field("insertions", &self.insertions) + .finish() } } -- cgit v1.2.3