diff options
author | Aleksey Kladov <[email protected]> | 2020-11-09 13:09:49 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-09 13:09:49 +0000 |
commit | e72cd4600e4c9633673998e03ad639c5e674737d (patch) | |
tree | 408621e995451b7141854ad28156b96a98c8c6d1 | |
parent | 73b08131dff8855c6736ce41867a6a197dfb87af (diff) |
Fix debug for SyntaxRewriter
-rw-r--r-- | crates/syntax/src/algo.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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> { | |||
331 | 331 | ||
332 | impl fmt::Debug for SyntaxRewriter<'_> { | 332 | impl fmt::Debug for SyntaxRewriter<'_> { |
333 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | 333 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
334 | f.debug_struct("SyntaxRewriter").field("replacements", &self.replacements).finish() | 334 | f.debug_struct("SyntaxRewriter") |
335 | .field("replacements", &self.replacements) | ||
336 | .field("insertions", &self.insertions) | ||
337 | .finish() | ||
335 | } | 338 | } |
336 | } | 339 | } |
337 | 340 | ||