@@ -322,15 +322,15 @@ fn trailing_whitespace_in_attributes_is_ignored() {
322322
323323type ExpandedAttribute < ' a > = ( parse:: Kind , Vec < ( BString , gix_attributes:: StateRef < ' a > ) > , usize ) ;
324324
325- fn set ( attr : & str ) -> ( BString , StateRef ) {
325+ fn set ( attr : & str ) -> ( BString , StateRef < ' _ > ) {
326326 ( attr. into ( ) , StateRef :: Set )
327327}
328328
329- fn unset ( attr : & str ) -> ( BString , StateRef ) {
329+ fn unset ( attr : & str ) -> ( BString , StateRef < ' _ > ) {
330330 ( attr. into ( ) , StateRef :: Unset )
331331}
332332
333- fn unspecified ( attr : & str ) -> ( BString , StateRef ) {
333+ fn unspecified ( attr : & str ) -> ( BString , StateRef < ' _ > ) {
334334 ( attr. into ( ) , StateRef :: Unspecified )
335335}
336336
@@ -350,36 +350,36 @@ fn pattern(name: &str, flags: gix_glob::pattern::Mode, first_wildcard_pos: Optio
350350 } )
351351}
352352
353- fn try_line ( input : & str ) -> Result < ExpandedAttribute , parse:: Error > {
353+ fn try_line ( input : & str ) -> Result < ExpandedAttribute < ' _ > , parse:: Error > {
354354 let mut lines = gix_attributes:: parse ( input. as_bytes ( ) ) ;
355355 let res = expand ( lines. next ( ) . unwrap ( ) ) ?;
356356 assert ! ( lines. next( ) . is_none( ) , "expected only one line" ) ;
357357 Ok ( res)
358358}
359359
360- fn line ( input : & str ) -> ExpandedAttribute {
360+ fn line ( input : & str ) -> ExpandedAttribute < ' _ > {
361361 try_line ( input) . unwrap ( )
362362}
363363
364- fn byte_line ( input : & [ u8 ] ) -> ExpandedAttribute {
364+ fn byte_line ( input : & [ u8 ] ) -> ExpandedAttribute < ' _ > {
365365 try_byte_line ( input) . unwrap ( )
366366}
367367
368- fn try_byte_line ( input : & [ u8 ] ) -> Result < ExpandedAttribute , parse:: Error > {
368+ fn try_byte_line ( input : & [ u8 ] ) -> Result < ExpandedAttribute < ' _ > , parse:: Error > {
369369 let mut lines = gix_attributes:: parse ( input) ;
370370 let res = expand ( lines. next ( ) . unwrap ( ) ) ?;
371371 assert ! ( lines. next( ) . is_none( ) , "expected only one line" ) ;
372372 Ok ( res)
373373}
374374
375- fn lenient_lines ( input : & str ) -> Vec < ExpandedAttribute > {
375+ fn lenient_lines ( input : & str ) -> Vec < ExpandedAttribute < ' _ > > {
376376 gix_attributes:: parse ( input. as_bytes ( ) )
377377 . map ( expand)
378378 . filter_map ( Result :: ok)
379379 . collect ( )
380380}
381381
382- fn try_lines ( input : & str ) -> Result < Vec < ExpandedAttribute > , parse:: Error > {
382+ fn try_lines ( input : & str ) -> Result < Vec < ExpandedAttribute < ' _ > > , parse:: Error > {
383383 gix_attributes:: parse ( input. as_bytes ( ) ) . map ( expand) . collect ( )
384384}
385385
0 commit comments