@@ -226,7 +226,7 @@ fn lint_map_unit_fn(
226226 ) ;
227227
228228 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) ;
230230 } ) ;
231231 } else if let Some ( ( binding, closure_expr) ) = unit_closure ( cx, fn_arg) {
232232 let msg = suggestion_msg ( "closure" , map_type) ;
@@ -241,15 +241,15 @@ fn lint_map_unit_fn(
241241 snippet_with_applicability( cx, var_arg. span, "_" , & mut applicability) ,
242242 snippet_with_context( cx, reduced_expr_span, var_arg. span. ctxt( ) , "_" , & mut applicability) . 0 ,
243243 ) ;
244- diag. span_suggestion ( stmt. span , "try this " , suggestion, applicability) ;
244+ diag. span_suggestion ( stmt. span , "try" , suggestion, applicability) ;
245245 } else {
246246 let suggestion = format ! (
247247 "if let {0}({1}) = {2} {{ ... }}" ,
248248 variant,
249249 snippet( cx, binding. pat. span, "_" ) ,
250250 snippet( cx, var_arg. span, "_" ) ,
251251 ) ;
252- diag. span_suggestion ( stmt. span , "try this " , suggestion, Applicability :: HasPlaceholders ) ;
252+ diag. span_suggestion ( stmt. span , "try" , suggestion, Applicability :: HasPlaceholders ) ;
253253 }
254254 } ) ;
255255 }
0 commit comments