1
Fork 0

compiler: use copied instead of manual map

This commit is contained in:
DaniPopes 2023-11-03 17:18:19 +01:00
parent e6779d98ee
commit 27364309a5
No known key found for this signature in database
GPG key ID: 0F09640DDB7AC692
6 changed files with 8 additions and 9 deletions

View file

@ -43,7 +43,7 @@ fn associated_item_def_ids(tcx: TyCtxt<'_>, def_id: LocalDefId) -> &[DefId] {
trait_fn_def_id,
)
})
.map(|def_id| *def_id),
.copied(),
),
)
}
@ -69,7 +69,7 @@ fn associated_item_def_ids(tcx: TyCtxt<'_>, def_id: LocalDefId) -> &[DefId] {
impl_fn_def_id,
)
})
.map(|def_id| *def_id)
.copied()
})),
)
}