Skip to content

Commit d7ddec6

Browse files
authored
Merge pull request rust-lang#19604 from WtzLAS/fix-issue-19601
Add semicolon to use
2 parents af324f2 + a28c66c commit d7ddec6

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/ide-completion/src/completions

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/ide-completion/src/completions/item_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ fn add_keywords(acc: &mut Completions, ctx: &CompletionContext<'_>, kind: Option
142142
add_keyword("struct", "struct $0");
143143
add_keyword("trait", "trait $1 {\n $0\n}");
144144
add_keyword("union", "union $1 {\n $0\n}");
145-
add_keyword("use", "use $0");
145+
add_keyword("use", "use $0;");
146146
if no_vis_qualifiers {
147147
add_keyword("impl", "impl $1 {\n $0\n}");
148148
add_keyword("impl for", "impl $1 for $2 {\n $0\n}");

0 commit comments

Comments
 (0)