Skip to content

Commit e88eb89

Browse files
committed
add space before/after wrapping braces
1 parent 68d3743 commit e88eb89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ra_ide/src/completion/presentation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl Completions {
280280
StructKind::Record => {
281281
join(detail_types.map(|(n, t)| format!("{}: {}", n, t.display(ctx.db).to_string())))
282282
.separator(", ")
283-
.surround_with("{", "}")
283+
.surround_with("{ ", " }")
284284
.to_string()
285285
}
286286
};
@@ -328,7 +328,7 @@ mod tests {
328328
delete: [121; 123),
329329
insert: "Foo",
330330
kind: EnumVariant,
331-
detail: "{x: i32, y: i32}",
331+
detail: "{ x: i32, y: i32 }",
332332
},
333333
]"###
334334
);

0 commit comments

Comments
 (0)