Don't add braces after struct

Unit structs are a thing
This commit is contained in:
Aleksey Kladov 2020-07-10 17:42:18 +02:00
parent e4983daa5e
commit 2d20c8f218

View File

@ -88,7 +88,7 @@ pub(super) fn complete_expr_keyword(acc: &mut Completions, ctx: &CompletionConte
if ctx.has_item_list_or_source_file_parent && !has_trait_or_impl_parent {
add_keyword(ctx, acc, "enum", "enum $0 {}");
add_keyword(ctx, acc, "struct", "struct $0 {}");
add_keyword(ctx, acc, "struct", "struct $0");
add_keyword(ctx, acc, "union", "union $0 {}");
}