Skip to content

Commit 2700586

Browse files
committed
fix lint
1 parent 7f1ec11 commit 2700586

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ringbuffer_trait.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub unsafe trait RingBuffer<T>:
122122
/// assert_eq!(rb.len(), 0);
123123
///
124124
/// ```
125-
fn drain(&mut self) -> RingBufferDrainingIterator<T, Self> {
125+
fn drain(&mut self) -> RingBufferDrainingIterator<'_, T, Self> {
126126
RingBufferDrainingIterator::new(self)
127127
}
128128

@@ -226,14 +226,14 @@ pub unsafe trait RingBuffer<T>:
226226
/// Creates a mutable iterator over the buffer starting from the item pushed the longest ago,
227227
/// and ending at the element most recently pushed.
228228
#[inline]
229-
fn iter_mut(&mut self) -> RingBufferMutIterator<T, Self> {
229+
fn iter_mut(&mut self) -> RingBufferMutIterator<'_, T, Self> {
230230
RingBufferMutIterator::new(self)
231231
}
232232

233233
/// Creates an iterator over the buffer starting from the item pushed the longest ago,
234234
/// and ending at the element most recently pushed.
235235
#[inline]
236-
fn iter(&self) -> RingBufferIterator<T, Self> {
236+
fn iter(&self) -> RingBufferIterator<'_, T, Self> {
237237
RingBufferIterator::new(self)
238238
}
239239

0 commit comments

Comments
 (0)