From 9b3e9537364fa176f77c93b81420134db89e1a75 Mon Sep 17 00:00:00 2001 From: Thomas BESSOU Date: Sun, 2 Jun 2024 22:37:53 +0200 Subject: [PATCH] make clippy happy --- src/groupbylazy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/groupbylazy.rs b/src/groupbylazy.rs index 0241f85ba..fb8307153 100644 --- a/src/groupbylazy.rs +++ b/src/groupbylazy.rs @@ -397,7 +397,7 @@ where /// references in the underlying iterators instead of reference counts, /// resulting in one less allocation. You may however hit lifetime /// errors if you require full ownership. - pub fn borrowed_iter<'a>(&'a self) -> <&'a Self as IntoIterator>::IntoIter { + pub fn borrowed_iter(&self) -> <&Self as IntoIterator>::IntoIter { self.into_iter() } } @@ -589,7 +589,7 @@ where /// references in the underlying iterators instead of reference counts, /// resulting in one less allocation. You may however hit lifetime /// errors if you require full ownership. - pub fn borrowed_iter<'a>(&'a self) -> <&'a Self as IntoIterator>::IntoIter { + pub fn borrowed_iter(&self) -> <&Self as IntoIterator>::IntoIter { self.into_iter() } }