File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -263,14 +263,13 @@ fn is_argument_similar_to_param_name(
263
263
) -> bool {
264
264
if is_enum_name_similar_to_param_name ( sema, argument, param_name) {
265
265
return true ;
266
- } else {
267
- let argument_string = if let Some ( repr) = get_string_representation ( argument) {
268
- repr
269
- } else {
270
- return false ;
271
- } ;
272
- let argument_string = argument_string. trim_start_matches ( '_' ) ;
273
- argument_string. starts_with ( param_name) || argument_string. ends_with ( param_name)
266
+ }
267
+ match get_string_representation ( argument) {
268
+ None => false ,
269
+ Some ( repr) => {
270
+ let argument_string = repr. trim_start_matches ( '_' ) ;
271
+ argument_string. starts_with ( param_name) || argument_string. ends_with ( param_name)
272
+ }
274
273
}
275
274
}
276
275
You can’t perform that action at this time.
0 commit comments