Skip to content

Commit 291876e

Browse files
Auto merge of #147491 - lolbinarycat:rustdoc-synthesize_auto_trait_impls-no-clone, r=<try>
rustdoc: remove redundant clone in synthesize_auto_trait_impls
2 parents 910617d + 8263cf9 commit 291876e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustdoc/clean/auto_trait.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ pub(crate) fn synthesize_auto_trait_impls<'tcx>(
2727
let finder = auto_trait::AutoTraitFinder::new(tcx);
2828
let mut auto_trait_impls: Vec<_> = cx
2929
.auto_traits
30-
.clone()
31-
.into_iter()
32-
.filter_map(|trait_def_id| {
30+
.iter()
31+
.filter_map(|&trait_def_id| {
3332
synthesize_auto_trait_impl(
3433
cx,
3534
ty,

0 commit comments

Comments
 (0)