aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-17 10:45:23 +0100
committerGitHub <[email protected]>2021-05-17 10:45:23 +0100
commit67c157b7dd4d52db0462da0b8734590ec8c7ee45 (patch)
treebeae641851dc5839f7d69472420012f920c25e8c /crates/syntax/src
parent72a694d5773b143086d5e3bb421d721614da0ffc (diff)
parent75a012361409349d0325c9232e0c8fe8d52de505 (diff)
Merge #8863
8863: fix: don't add extra whitespace around fields r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/syntax/src')
-rw-r--r--crates/syntax/src/ast/edit_in_place.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/syntax/src/ast/edit_in_place.rs b/crates/syntax/src/ast/edit_in_place.rs
index 14624c682..2676ed8c9 100644
--- a/crates/syntax/src/ast/edit_in_place.rs
+++ b/crates/syntax/src/ast/edit_in_place.rs
@@ -378,6 +378,10 @@ impl ast::RecordExprFieldList {
378 make::tokens::single_space() 378 make::tokens::single_space()
379 }; 379 };
380 380
381 if is_multiline {
382 normalize_ws_between_braces(self.syntax());
383 }
384
381 let position = match self.fields().last() { 385 let position = match self.fields().last() {
382 Some(last_field) => { 386 Some(last_field) => {
383 let comma = match last_field 387 let comma = match last_field