@@ -138,10 +138,10 @@ impl Package for DirectoryPackage {
138
138
139
139
#[ derive( Debug ) ]
140
140
#[ 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 ) ;
142
142
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 > {
145
145
let temp_dir = cx. tmp_cx . new_directory ( ) ?;
146
146
let mut archive = tar:: Archive :: new ( stream) ;
147
147
// The rust-installer packages unpack to a directory called
@@ -528,7 +528,7 @@ fn unpack_without_first_dir<R: Read>(
528
528
Ok ( ( ) )
529
529
}
530
530
531
- impl Package for TarPackage < ' _ > {
531
+ impl Package for TarPackage {
532
532
fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
533
533
self . 0 . contains ( component, short_name)
534
534
}
@@ -547,16 +547,16 @@ impl Package for TarPackage<'_> {
547
547
}
548
548
549
549
#[ derive( Debug ) ]
550
- pub ( crate ) struct TarGzPackage < ' a > ( TarPackage < ' a > ) ;
550
+ pub ( crate ) struct TarGzPackage ( TarPackage ) ;
551
551
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 > {
554
554
let stream = flate2:: read:: GzDecoder :: new ( stream) ;
555
555
Ok ( TarGzPackage ( TarPackage :: new ( stream, cx) ?) )
556
556
}
557
557
}
558
558
559
- impl Package for TarGzPackage < ' _ > {
559
+ impl Package for TarGzPackage {
560
560
fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
561
561
self . 0 . contains ( component, short_name)
562
562
}
@@ -575,16 +575,16 @@ impl Package for TarGzPackage<'_> {
575
575
}
576
576
577
577
#[ derive( Debug ) ]
578
- pub ( crate ) struct TarXzPackage < ' a > ( TarPackage < ' a > ) ;
578
+ pub ( crate ) struct TarXzPackage ( TarPackage ) ;
579
579
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 > {
582
582
let stream = xz2:: read:: XzDecoder :: new ( stream) ;
583
583
Ok ( TarXzPackage ( TarPackage :: new ( stream, cx) ?) )
584
584
}
585
585
}
586
586
587
- impl Package for TarXzPackage < ' _ > {
587
+ impl Package for TarXzPackage {
588
588
fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
589
589
self . 0 . contains ( component, short_name)
590
590
}
@@ -603,16 +603,16 @@ impl Package for TarXzPackage<'_> {
603
603
}
604
604
605
605
#[ derive( Debug ) ]
606
- pub ( crate ) struct TarZStdPackage < ' a > ( TarPackage < ' a > ) ;
606
+ pub ( crate ) struct TarZStdPackage ( TarPackage ) ;
607
607
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 > {
610
610
let stream = zstd:: stream:: read:: Decoder :: new ( stream) ?;
611
611
Ok ( TarZStdPackage ( TarPackage :: new ( stream, cx) ?) )
612
612
}
613
613
}
614
614
615
- impl Package for TarZStdPackage < ' _ > {
615
+ impl Package for TarZStdPackage {
616
616
fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
617
617
self . 0 . contains ( component, short_name)
618
618
}
0 commit comments