Skip to content

Commit 0a570ed

Browse files
committed
Less annoying mod completion
We shouldn't complete optional elements, as deleting stuff is much more annoying than adding it.
1 parent 44a995d commit 0a570ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/completion/src/completions/keyword.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub(crate) fn complete_expr_keyword(acc: &mut Completions, ctx: &CompletionConte
9999
add_keyword(ctx, acc, "else if", "else if $0 {}");
100100
}
101101
if (ctx.has_item_list_or_source_file_parent) || ctx.block_expr_parent {
102-
add_keyword(ctx, acc, "mod", "mod $0 {}");
102+
add_keyword(ctx, acc, "mod", "mod $0");
103103
}
104104
if ctx.bind_pat_parent || ctx.ref_pat_parent {
105105
add_keyword(ctx, acc, "mut", "mut ");

0 commit comments

Comments
 (0)