@@ -226,7 +226,7 @@ fn lint_map_unit_fn(
226
226
) ;
227
227
228
228
span_lint_and_then ( cx, lint, expr. span , & msg, |diag| {
229
- diag. span_suggestion ( stmt. span , "try this " , suggestion, applicability) ;
229
+ diag. span_suggestion ( stmt. span , "try" , suggestion, applicability) ;
230
230
} ) ;
231
231
} else if let Some ( ( binding, closure_expr) ) = unit_closure ( cx, fn_arg) {
232
232
let msg = suggestion_msg ( "closure" , map_type) ;
@@ -241,15 +241,15 @@ fn lint_map_unit_fn(
241
241
snippet_with_applicability( cx, var_arg. span, "_" , & mut applicability) ,
242
242
snippet_with_context( cx, reduced_expr_span, var_arg. span. ctxt( ) , "_" , & mut applicability) . 0 ,
243
243
) ;
244
- diag. span_suggestion ( stmt. span , "try this " , suggestion, applicability) ;
244
+ diag. span_suggestion ( stmt. span , "try" , suggestion, applicability) ;
245
245
} else {
246
246
let suggestion = format ! (
247
247
"if let {0}({1}) = {2} {{ ... }}" ,
248
248
variant,
249
249
snippet( cx, binding. pat. span, "_" ) ,
250
250
snippet( cx, var_arg. span, "_" ) ,
251
251
) ;
252
- diag. span_suggestion ( stmt. span , "try this " , suggestion, Applicability :: HasPlaceholders ) ;
252
+ diag. span_suggestion ( stmt. span , "try" , suggestion, Applicability :: HasPlaceholders ) ;
253
253
}
254
254
} ) ;
255
255
}
0 commit comments