Skip to content

Commit cd532e6

Browse files
bors[bot]matklad
andauthored
Merge #7306
7306: Less annoying `mod` completion r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 44a995d + 0a570ed commit cd532e6

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)