fix: Fix pattern completions adding unnecessary braces

This commit is contained in:
Lukas Wirth 2022-07-28 15:47:46 +02:00
parent e782e59d3d
commit 7c59d7c75c
4 changed files with 33 additions and 9 deletions

View file

@ -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
"#]],
);
}