From b61d9063bc73dd153af0aa6d34f4ffcda832f29c Mon Sep 17 00:00:00 2001 From: Riccardo Mazzarini Date: Tue, 12 Dec 2023 16:30:39 +0100 Subject: [PATCH] fix clippy --- src/metrics/fzf/query.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/metrics/fzf/query.rs b/src/metrics/fzf/query.rs index a458f18..fdf913b 100644 --- a/src/metrics/fzf/query.rs +++ b/src/metrics/fzf/query.rs @@ -120,7 +120,7 @@ impl<'a> Condition<'a> { #[inline] pub(super) fn iter( &self, - ) -> impl Iterator> + ExactSizeIterator + '_ { + ) -> impl ExactSizeIterator> + '_ { self.or_patterns.iter().copied() } @@ -175,9 +175,7 @@ impl<'a> Pattern<'a> { /// TODO: docs #[inline] - pub(crate) fn chars( - &self, - ) -> impl Iterator + DoubleEndedIterator + '_ { + pub(crate) fn chars(&self) -> impl DoubleEndedIterator + '_ { self.text.iter().copied() }