From be8aa093a2f13fdaf4a321fc58f91ffdf2f44574 Mon Sep 17 00:00:00 2001 From: Danny Stoll <64173476+DannyStoll1@users.noreply.github.com> Date: Tue, 24 Oct 2023 00:03:45 +0000 Subject: [PATCH] Fix type in suggestion in iter_without_into_iter.rs --- clippy_lints/src/iter_without_into_iter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/iter_without_into_iter.rs b/clippy_lints/src/iter_without_into_iter.rs index 88042525c4f7..6e59bb0d97b6 100644 --- a/clippy_lints/src/iter_without_into_iter.rs +++ b/clippy_lints/src/iter_without_into_iter.rs @@ -247,8 +247,8 @@ impl {self_ty_without_ref} {{ " impl IntoIterator for {self_ty_snippet} {{ type IntoIter = {ret_ty}; - type Iter = {iter_ty}; - fn into_iter() -> Self::IntoIter {{ + type Item = {iter_ty}; + fn into_iter(self) -> Self::IntoIter {{ self.iter() }} }}