avoid .into() conversion to identical types
This commit is contained in:
parent
35a99eef32
commit
0aa4cde747
11 changed files with 17 additions and 27 deletions
|
@ -356,7 +356,7 @@ impl<'tcx> PlaceBuilder<'tcx> {
|
|||
match self {
|
||||
PlaceBuilder::Local { local, projection } => PlaceBuilder::Local {
|
||||
local: *local,
|
||||
projection: Vec::from_iter(projection.iter().copied().chain([elem.into()])),
|
||||
projection: Vec::from_iter(projection.iter().copied().chain([elem])),
|
||||
},
|
||||
PlaceBuilder::Upvar { upvar, projection } => PlaceBuilder::Upvar {
|
||||
upvar: *upvar,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue