From e88eb89132d2407614aebee1b43472b577a2394c Mon Sep 17 00:00:00 2001 From: adamrk Date: Sun, 16 Feb 2020 16:33:15 +0100 Subject: add space before/after wrapping braces --- crates/ra_ide/src/completion/presentation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index 4de09d82c..1a3bcffae 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs @@ -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 }", }, ]"### ); -- cgit v1.2.3