Skip to content

Commit

Permalink
Some changes suggested by Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Dec 13, 2024
1 parent 605a878 commit 04fabe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/chunks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ pub struct ReadChunkIntoIter<'a, T> {
iterated: usize,
}

impl<'a, T> Drop for ReadChunkIntoIter<'a, T> {
impl<T> Drop for ReadChunkIntoIter<'_, T> {
/// Makes all iterated slots available for writing again.
///
/// Non-iterated items remain in the ring buffer and are *not* dropped.
Expand All @@ -806,7 +806,7 @@ impl<'a, T> Drop for ReadChunkIntoIter<'a, T> {
}
}

impl<'a, T> Iterator for ReadChunkIntoIter<'a, T> {
impl<T> Iterator for ReadChunkIntoIter<'_, T> {
type Item = T;

#[inline]
Expand Down Expand Up @@ -836,9 +836,9 @@ impl<'a, T> Iterator for ReadChunkIntoIter<'a, T> {
}
}

impl<'a, T> ExactSizeIterator for ReadChunkIntoIter<'a, T> {}
impl<T> ExactSizeIterator for ReadChunkIntoIter<'_, T> {}

impl<'a, T> core::iter::FusedIterator for ReadChunkIntoIter<'a, T> {}
impl<T> core::iter::FusedIterator for ReadChunkIntoIter<'_, T> {}

#[cfg(feature = "std")]
impl std::io::Write for Producer<u8> {
Expand Down

0 comments on commit 04fabe6

Please sign in to comment.