mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
fix: Fix pattern completions adding unnecessary braces
This commit is contained in:
parent
e782e59d3d
commit
7c59d7c75c
4 changed files with 33 additions and 9 deletions
|
@ -443,7 +443,7 @@ fn foo() {
|
|||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
bn TupleVariant(…) TupleVariant($1)$0
|
||||
bn TupleVariant TupleVariant
|
||||
"#]],
|
||||
);
|
||||
check_empty(
|
||||
|
@ -458,7 +458,7 @@ fn foo() {
|
|||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
bn RecordVariant {…} RecordVariant { field$1 }$0
|
||||
bn RecordVariant RecordVariant
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue