add space before/after wrapping braces
This commit is contained in:
parent
68d3743faf
commit
e88eb89132
@ -280,7 +280,7 @@ impl Completions {
|
||||
StructKind::Record => {
|
||||
join(detail_types.map(|(n, t)| format!("{}: {}", n, t.display(ctx.db).to_string())))
|
||||
.separator(", ")
|
||||
.surround_with("{", "}")
|
||||
.surround_with("{ ", " }")
|
||||
.to_string()
|
||||
}
|
||||
};
|
||||
@ -328,7 +328,7 @@ mod tests {
|
||||
delete: [121; 123),
|
||||
insert: "Foo",
|
||||
kind: EnumVariant,
|
||||
detail: "{x: i32, y: i32}",
|
||||
detail: "{ x: i32, y: i32 }",
|
||||
},
|
||||
]"###
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user