File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
crates/ide_assists/src/handlers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1185,13 +1185,12 @@ impl FlowHandler {
1185
1185
let stmt = make:: expr_stmt ( action) ;
1186
1186
let block = make:: block_expr ( iter:: once ( stmt. into ( ) ) , None ) ;
1187
1187
let controlflow_break_path = make:: path_from_text ( "ControlFlow::Break" ) ;
1188
- let tuple_pat = make:: tuple_pat ( iter:: empty ( ) ) ;
1189
1188
let condition = make:: condition (
1190
1189
call_expr,
1191
1190
Some (
1192
1191
make:: tuple_struct_pat (
1193
1192
controlflow_break_path,
1194
- iter:: once ( tuple_pat . into ( ) ) ,
1193
+ iter:: once ( make :: wildcard_pat ( ) . into ( ) ) ,
1195
1194
)
1196
1195
. into ( ) ,
1197
1196
) ,
@@ -3301,7 +3300,7 @@ fn foo() {
3301
3300
fn foo() {
3302
3301
loop {
3303
3302
let mut n = 1;
3304
- if let ControlFlow::Break(() ) = fun_name(&mut n) {
3303
+ if let ControlFlow::Break(_ ) = fun_name(&mut n) {
3305
3304
break;
3306
3305
}
3307
3306
let h = 1 + n;
@@ -3338,7 +3337,7 @@ fn foo() {
3338
3337
fn foo() {
3339
3338
loop {
3340
3339
let mut n = 1;
3341
- if let ControlFlow::Break(() ) = fun_name(n) {
3340
+ if let ControlFlow::Break(_ ) = fun_name(n) {
3342
3341
break;
3343
3342
}
3344
3343
let h = 1;
You can’t perform that action at this time.
0 commit comments