File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments