diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-09 13:10:23 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-09 13:10:23 +0000 |
commit | 9febb9eb0ec42d6b3fea6685402faef26f8b8186 (patch) | |
tree | 408621e995451b7141854ad28156b96a98c8c6d1 | |
parent | 73b08131dff8855c6736ce41867a6a197dfb87af (diff) | |
parent | e72cd4600e4c9633673998e03ad639c5e674737d (diff) |
Merge #6508
6508: Fix debug for SyntaxRewriter r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
-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 | ||