Skip to content

Commit 8263cf9

Browse files
committed
rustdoc: remove redundant clone in synthesize_auto_trait_impls
1 parent 5c7ae0c commit 8263cf9

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)