Rollup merge of #117549 - DaniPopes:more-copied, r=b-naber
Use `copied` instead of manual `map`
This commit is contained in:
commit
aa2289d3bc
8 changed files with 10 additions and 11 deletions
|
@ -1337,7 +1337,7 @@ pub fn write_allocations<'tcx>(
|
|||
fn alloc_ids_from_alloc(
|
||||
alloc: ConstAllocation<'_>,
|
||||
) -> impl DoubleEndedIterator<Item = AllocId> + '_ {
|
||||
alloc.inner().provenance().ptrs().values().map(|id| *id)
|
||||
alloc.inner().provenance().ptrs().values().copied()
|
||||
}
|
||||
|
||||
fn alloc_ids_from_const_val(val: ConstValue<'_>) -> impl Iterator<Item = AllocId> + '_ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue