Skip to content

Commit 120d549

Browse files
change 'let mut' keyword completion into 'ietm' snippet
1 parent 0d6dfc8 commit 120d549

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ pub(crate) fn complete_expr_path(
365365
add_keyword("false", "false");
366366

367367
if in_condition || in_block_expr {
368-
add_keyword("let mut", "let mut $0");
368+
add_keyword("letm", "let mut $0");
369369
add_keyword("let", "let $0");
370370
}
371371

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ fn main() {
347347
"#,
348348
);
349349
check_edit(
350-
"let mut",
350+
"letm",
351351
r#"
352352
fn main() {
353353
$0

0 commit comments

Comments
 (0)