Skip to content

Commit c124128

Browse files
authored
Use String::new() instead of "".to_string() part 2
1 parent 1121ff7 commit c124128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2969,7 +2969,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
29692969
return Some((
29702970
vec![
29712971
(box_new.span.to(l_paren), String::new()),
2972-
(r_paren, "".to_string()),
2972+
(r_paren, String::new()),
29732973
],
29742974
"consider removing the Box".to_string(),
29752975
Applicability::MachineApplicable,

0 commit comments

Comments
 (0)