cleanup: don't .into()
identical types
This commit is contained in:
parent
9903b256a2
commit
e963568585
3 changed files with 4 additions and 7 deletions
|
@ -396,11 +396,8 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
|
|||
|
||||
for i in 0..dest_len {
|
||||
let place = self.project_index(&dest, i)?;
|
||||
let value = if i == index {
|
||||
elem.clone()
|
||||
} else {
|
||||
self.project_index(&input, i)?.into()
|
||||
};
|
||||
let value =
|
||||
if i == index { elem.clone() } else { self.project_index(&input, i)? };
|
||||
self.copy_op(&value, &place)?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue