@@ -138,10 +138,10 @@ impl Package for DirectoryPackage {
138138
139139#[ derive( Debug ) ]
140140#[ allow( dead_code) ] // temp::Dir is held for drop.
141- pub ( crate ) struct TarPackage < ' a > ( DirectoryPackage , temp:: Dir < ' a > ) ;
141+ pub ( crate ) struct TarPackage ( DirectoryPackage , temp:: Dir ) ;
142142
143- impl < ' a > TarPackage < ' a > {
144- pub ( crate ) fn new < R : Read > ( stream : R , cx : & PackageContext < ' a > ) -> Result < Self > {
143+ impl TarPackage {
144+ pub ( crate ) fn new < R : Read > ( stream : R , cx : & PackageContext < ' _ > ) -> Result < Self > {
145145 let temp_dir = cx. tmp_cx . new_directory ( ) ?;
146146 let mut archive = tar:: Archive :: new ( stream) ;
147147 // The rust-installer packages unpack to a directory called
@@ -528,7 +528,7 @@ fn unpack_without_first_dir<R: Read>(
528528 Ok ( ( ) )
529529}
530530
531- impl Package for TarPackage < ' _ > {
531+ impl Package for TarPackage {
532532 fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
533533 self . 0 . contains ( component, short_name)
534534 }
@@ -547,16 +547,16 @@ impl Package for TarPackage<'_> {
547547}
548548
549549#[ derive( Debug ) ]
550- pub ( crate ) struct TarGzPackage < ' a > ( TarPackage < ' a > ) ;
550+ pub ( crate ) struct TarGzPackage ( TarPackage ) ;
551551
552- impl < ' a > TarGzPackage < ' a > {
553- pub ( crate ) fn new < R : Read > ( stream : R , cx : & PackageContext < ' a > ) -> Result < Self > {
552+ impl TarGzPackage {
553+ pub ( crate ) fn new < R : Read > ( stream : R , cx : & PackageContext < ' _ > ) -> Result < Self > {
554554 let stream = flate2:: read:: GzDecoder :: new ( stream) ;
555555 Ok ( TarGzPackage ( TarPackage :: new ( stream, cx) ?) )
556556 }
557557}
558558
559- impl Package for TarGzPackage < ' _ > {
559+ impl Package for TarGzPackage {
560560 fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
561561 self . 0 . contains ( component, short_name)
562562 }
@@ -575,16 +575,16 @@ impl Package for TarGzPackage<'_> {
575575}
576576
577577#[ derive( Debug ) ]
578- pub ( crate ) struct TarXzPackage < ' a > ( TarPackage < ' a > ) ;
578+ pub ( crate ) struct TarXzPackage ( TarPackage ) ;
579579
580- impl < ' a > TarXzPackage < ' a > {
581- pub ( crate ) fn new < R : Read > ( stream : R , cx : & PackageContext < ' a > ) -> Result < Self > {
580+ impl TarXzPackage {
581+ pub ( crate ) fn new < R : Read > ( stream : R , cx : & PackageContext < ' _ > ) -> Result < Self > {
582582 let stream = xz2:: read:: XzDecoder :: new ( stream) ;
583583 Ok ( TarXzPackage ( TarPackage :: new ( stream, cx) ?) )
584584 }
585585}
586586
587- impl Package for TarXzPackage < ' _ > {
587+ impl Package for TarXzPackage {
588588 fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
589589 self . 0 . contains ( component, short_name)
590590 }
@@ -603,16 +603,16 @@ impl Package for TarXzPackage<'_> {
603603}
604604
605605#[ derive( Debug ) ]
606- pub ( crate ) struct TarZStdPackage < ' a > ( TarPackage < ' a > ) ;
606+ pub ( crate ) struct TarZStdPackage ( TarPackage ) ;
607607
608- impl < ' a > TarZStdPackage < ' a > {
609- pub ( crate ) fn new < R : Read > ( stream : R , cx : & PackageContext < ' a > ) -> Result < Self > {
608+ impl TarZStdPackage {
609+ pub ( crate ) fn new < R : Read > ( stream : R , cx : & PackageContext < ' _ > ) -> Result < Self > {
610610 let stream = zstd:: stream:: read:: Decoder :: new ( stream) ?;
611611 Ok ( TarZStdPackage ( TarPackage :: new ( stream, cx) ?) )
612612 }
613613}
614614
615- impl Package for TarZStdPackage < ' _ > {
615+ impl Package for TarZStdPackage {
616616 fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
617617 self . 0 . contains ( component, short_name)
618618 }
0 commit comments