@@ -308,15 +308,15 @@ fn find_good_method_for_match<'a>(
308
308
should_be_left : & ' a str ,
309
309
should_be_right : & ' a str ,
310
310
) -> Option < & ' a str > {
311
- let pat_left = arms[ 0 ] . pat ;
312
- let pat_right = arms[ 1 ] . pat ;
311
+ let first_pat = arms[ 0 ] . pat ;
312
+ let second_pat = arms[ 1 ] . pat ;
313
313
314
- let body_node_pair = if ( is_pat_variant ( cx, pat_left , path_left, expected_item_left) )
315
- && ( is_pat_variant ( cx, pat_right , path_right, expected_item_right) )
314
+ let body_node_pair = if ( is_pat_variant ( cx, first_pat , path_left, expected_item_left) )
315
+ && ( is_pat_variant ( cx, second_pat , path_right, expected_item_right) )
316
316
{
317
317
( & arms[ 0 ] . body . kind , & arms[ 1 ] . body . kind )
318
- } else if ( is_pat_variant ( cx, pat_left , path_left, expected_item_right) )
319
- && ( is_pat_variant ( cx, pat_right , path_right, expected_item_left) )
318
+ } else if ( is_pat_variant ( cx, first_pat , path_left, expected_item_right) )
319
+ && ( is_pat_variant ( cx, second_pat , path_right, expected_item_left) )
320
320
{
321
321
( & arms[ 1 ] . body . kind , & arms[ 0 ] . body . kind )
322
322
} else {
0 commit comments