aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 );