1
Fork 0

Rollup merge of #117549 - DaniPopes:more-copied, r=b-naber

Use `copied` instead of manual `map`
This commit is contained in:
Matthias Krüger 2023-11-17 23:04:22 +01:00 committed by GitHub
commit aa2289d3bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 11 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()
})),
)
}