Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Dec 12, 2023
1 parent 17a824d commit b61d906
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/metrics/fzf/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl<'a> Condition<'a> {
#[inline]
pub(super) fn iter(
&self,
) -> impl Iterator<Item = Pattern<'a>> + ExactSizeIterator + '_ {
) -> impl ExactSizeIterator<Item = Pattern<'a>> + '_ {
self.or_patterns.iter().copied()
}

Expand Down Expand Up @@ -175,9 +175,7 @@ impl<'a> Pattern<'a> {

/// TODO: docs
#[inline]
pub(crate) fn chars(
&self,
) -> impl Iterator<Item = char> + DoubleEndedIterator + '_ {
pub(crate) fn chars(&self) -> impl DoubleEndedIterator<Item = char> + '_ {
self.text.iter().copied()
}

Expand Down

0 comments on commit b61d906

Please sign in to comment.