replace format!("") with String::new()
use array explicitly instead of vec for const content (even if optimizer smart enought to remove allocation)
This commit is contained in:
parent
1af55d19c7
commit
aad48f71b3
@ -1074,7 +1074,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||
min_captures: Option<&ty::RootVariableMinCaptureList<'tcx>>,
|
||||
) -> (Vec<MigrationDiagnosticInfo>, String) {
|
||||
let Some(upvars) = self.tcx.upvars_mentioned(closure_def_id) else {
|
||||
return (Vec::new(), format!(""));
|
||||
return (Vec::new(), String::new());
|
||||
};
|
||||
|
||||
let mut need_migrations = Vec::new();
|
||||
|
Loading…
x
Reference in New Issue
Block a user