aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authoradamrk <[email protected]>2020-02-16 15:33:15 +0000
committeradamrk <[email protected]>2020-02-16 15:33:15 +0000
commite88eb89132d2407614aebee1b43472b577a2394c (patch)
treedc128f32b9d5dfee531fcd8d9f2a761c9e8db72f /crates
parent68d3743faf51926f0a63207686f860bdffafe0d7 (diff)
add space before/after wrapping braces
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide/src/completion/presentation.rs4
1 files changed, 2 insertions, 2 deletions
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 {
280 StructKind::Record => { 280 StructKind::Record => {
281 join(detail_types.map(|(n, t)| format!("{}: {}", n, t.display(ctx.db).to_string()))) 281 join(detail_types.map(|(n, t)| format!("{}: {}", n, t.display(ctx.db).to_string())))
282 .separator(", ") 282 .separator(", ")
283 .surround_with("{", "}") 283 .surround_with("{ ", " }")
284 .to_string() 284 .to_string()
285 } 285 }
286 }; 286 };
@@ -328,7 +328,7 @@ mod tests {
328 delete: [121; 123), 328 delete: [121; 123),
329 insert: "Foo", 329 insert: "Foo",
330 kind: EnumVariant, 330 kind: EnumVariant,
331 detail: "{x: i32, y: i32}", 331 detail: "{ x: i32, y: i32 }",
332 }, 332 },
333 ]"### 333 ]"###
334 ); 334 );