@@ -42,7 +42,7 @@ impl<'a> GAFLineParser<'a> {
4242
4343 fn int_field ( & mut self ) -> Option < usize > {
4444 let mut pos = 0 ;
45- let val = parse_int ( & self . buf , & mut pos) ;
45+ let val = parse_int ( self . buf , & mut pos) ;
4646 assert ! ( matches!( self . buf[ pos] , b'\t' | b'\n' ) ) ;
4747 self . advance ( pos + 1 ) ;
4848 val
@@ -193,7 +193,7 @@ impl ChunkEvent {
193193 }
194194}
195195
196- impl < ' a , ' b > Iterator for PathChunker < ' a , ' b > {
196+ impl Iterator for PathChunker < ' _ , ' _ > {
197197 type Item = ChunkEvent ;
198198
199199 fn next ( & mut self ) -> Option < ChunkEvent > {
@@ -278,13 +278,13 @@ fn parse_int(bytes: &[u8], index: &mut usize) -> Option<usize> {
278278 }
279279
280280 if first_digit {
281- return None ;
281+ None
282282 } else {
283- return Some ( num) ;
283+ Some ( num)
284284 }
285285}
286286
287- impl < ' a > Iterator for PathParser < ' a > {
287+ impl Iterator for PathParser < ' _ > {
288288 type Item = ( usize , bool ) ;
289289
290290 fn next ( & mut self ) -> Option < ( usize , bool ) > {
@@ -303,7 +303,7 @@ impl<'a> Iterator for PathParser<'a> {
303303
304304 // Parse the integer segment name.
305305 let seg_name = parse_int ( self . str , & mut self . index ) ?;
306- return Some ( ( seg_name, forward) ) ;
306+ Some ( ( seg_name, forward) )
307307 }
308308}
309309
0 commit comments