@@ -187,7 +187,7 @@ impl<'a> Cursor<'a> {
187187 /// point at the first token after the group.
188188 unsafe fn bump_over_group ( self ) -> Cursor < ' a > {
189189 match self . entry ( ) {
190- & Entry :: Group ( _, end_offset) => Cursor :: create ( self . ptr . add ( end_offset) , self . scope ) ,
190+ Entry :: Group ( _, end_offset) => Cursor :: create ( self . ptr . add ( * end_offset) , self . scope ) ,
191191 _ => self . bump_ignore_group ( ) ,
192192 }
193193 }
@@ -196,8 +196,8 @@ impl<'a> Cursor<'a> {
196196 /// if the cursor is not currently looking at an `Entry::Group`.
197197 unsafe fn bump_into_group ( self ) -> Cursor < ' a > {
198198 match self . entry ( ) {
199- & Entry :: Group ( _, end_offset) => {
200- Cursor :: create ( self . ptr . add ( 1 ) , self . ptr . add ( end_offset) )
199+ Entry :: Group ( _, end_offset) => {
200+ Cursor :: create ( self . ptr . add ( 1 ) , self . ptr . add ( * end_offset) )
201201 }
202202 _ => hint:: unreachable_unchecked ( ) ,
203203 }
@@ -237,7 +237,8 @@ impl<'a> Cursor<'a> {
237237
238238 if let Entry :: Group ( group, _) = self . entry ( ) {
239239 if group. delimiter ( ) == delim {
240- let ( into, over) = unsafe { ( self . bump_into_group ( ) , self . bump_over_group ( ) ) } ;
240+ let into = unsafe { self . bump_into_group ( ) } ;
241+ let over = unsafe { self . bump_over_group ( ) } ;
241242 return Some ( ( into, group. span ( ) , over) ) ;
242243 }
243244 }
0 commit comments