@@ -28,13 +28,13 @@ pub(crate) const VERSION_FILE: &str = "rust-installer-version";
2828
2929pub trait Package : fmt:: Debug {
3030 fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool ;
31- fn install < ' a > (
31+ fn install (
3232 & self ,
3333 target : & Components ,
3434 component : & str ,
3535 short_name : Option < & str > ,
36- tx : Transaction < ' a > ,
37- ) -> Result < Transaction < ' a > > ;
36+ tx : Transaction ,
37+ ) -> Result < Transaction > ;
3838 fn components ( & self ) -> Vec < String > ;
3939}
4040
@@ -78,13 +78,13 @@ impl Package for DirectoryPackage {
7878 false
7979 }
8080 }
81- fn install < ' a > (
81+ fn install (
8282 & self ,
8383 target : & Components ,
8484 name : & str ,
8585 short_name : Option < & str > ,
86- tx : Transaction < ' a > ,
87- ) -> Result < Transaction < ' a > > {
86+ tx : Transaction ,
87+ ) -> Result < Transaction > {
8888 let actual_name = if self . components . contains ( name) {
8989 name
9090 } else if let Some ( n) = short_name {
@@ -139,7 +139,7 @@ impl Package for DirectoryPackage {
139139pub ( crate ) struct TarPackage ( DirectoryPackage , temp:: Dir ) ;
140140
141141impl TarPackage {
142- pub ( crate ) fn new < R : Read > ( stream : R , dl_cfg : & DownloadCfg < ' _ > ) -> Result < Self > {
142+ pub ( crate ) fn new < R : Read > ( stream : R , dl_cfg : & DownloadCfg ) -> Result < Self > {
143143 let temp_dir = dl_cfg. tmp_cx . new_directory ( ) ?;
144144 let mut archive = tar:: Archive :: new ( stream) ;
145145 // The rust-installer packages unpack to a directory called
@@ -159,7 +159,7 @@ impl TarPackage {
159159fn unpack_ram (
160160 io_chunk_size : usize ,
161161 effective_max_ram : Option < usize > ,
162- dl_cfg : & DownloadCfg < ' _ > ,
162+ dl_cfg : & DownloadCfg ,
163163) -> usize {
164164 const RAM_ALLOWANCE_FOR_RUSTUP_AND_BUFFERS : usize = 200 * 1024 * 1024 ;
165165 let minimum_ram = io_chunk_size * 2 ;
@@ -285,7 +285,7 @@ enum DirStatus {
285285fn unpack_without_first_dir < R : Read > (
286286 archive : & mut tar:: Archive < R > ,
287287 path : & Path ,
288- dl_cfg : & DownloadCfg < ' _ > ,
288+ dl_cfg : & DownloadCfg ,
289289) -> Result < ( ) > {
290290 let entries = archive. entries ( ) ?;
291291 let effective_max_ram = match effective_limits:: memory_limit ( ) {
@@ -296,7 +296,7 @@ fn unpack_without_first_dir<R: Read>(
296296 }
297297 } ;
298298 let unpack_ram = unpack_ram ( IO_CHUNK_SIZE , effective_max_ram, dl_cfg) ;
299- let mut io_executor: Box < dyn Executor > = get_executor ( unpack_ram, dl_cfg. process ) ?;
299+ let mut io_executor: Box < dyn Executor > = get_executor ( unpack_ram, & dl_cfg. process ) ?;
300300
301301 let mut directories: HashMap < PathBuf , DirStatus > = HashMap :: new ( ) ;
302302 // Path is presumed to exist. Call it a precondition.
@@ -530,13 +530,13 @@ impl Package for TarPackage {
530530 fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
531531 self . 0 . contains ( component, short_name)
532532 }
533- fn install < ' b > (
533+ fn install (
534534 & self ,
535535 target : & Components ,
536536 component : & str ,
537537 short_name : Option < & str > ,
538- tx : Transaction < ' b > ,
539- ) -> Result < Transaction < ' b > > {
538+ tx : Transaction ,
539+ ) -> Result < Transaction > {
540540 self . 0 . install ( target, component, short_name, tx)
541541 }
542542 fn components ( & self ) -> Vec < String > {
@@ -548,7 +548,7 @@ impl Package for TarPackage {
548548pub ( crate ) struct TarGzPackage ( TarPackage ) ;
549549
550550impl TarGzPackage {
551- pub ( crate ) fn new < R : Read > ( stream : R , dl_cfg : & DownloadCfg < ' _ > ) -> Result < Self > {
551+ pub ( crate ) fn new < R : Read > ( stream : R , dl_cfg : & DownloadCfg ) -> Result < Self > {
552552 let stream = flate2:: read:: GzDecoder :: new ( stream) ;
553553 Ok ( TarGzPackage ( TarPackage :: new ( stream, dl_cfg) ?) )
554554 }
@@ -558,13 +558,13 @@ impl Package for TarGzPackage {
558558 fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
559559 self . 0 . contains ( component, short_name)
560560 }
561- fn install < ' b > (
561+ fn install (
562562 & self ,
563563 target : & Components ,
564564 component : & str ,
565565 short_name : Option < & str > ,
566- tx : Transaction < ' b > ,
567- ) -> Result < Transaction < ' b > > {
566+ tx : Transaction ,
567+ ) -> Result < Transaction > {
568568 self . 0 . install ( target, component, short_name, tx)
569569 }
570570 fn components ( & self ) -> Vec < String > {
@@ -576,7 +576,7 @@ impl Package for TarGzPackage {
576576pub ( crate ) struct TarXzPackage ( TarPackage ) ;
577577
578578impl TarXzPackage {
579- pub ( crate ) fn new < R : Read > ( stream : R , dl_cfg : & DownloadCfg < ' _ > ) -> Result < Self > {
579+ pub ( crate ) fn new < R : Read > ( stream : R , dl_cfg : & DownloadCfg ) -> Result < Self > {
580580 let stream = xz2:: read:: XzDecoder :: new ( stream) ;
581581 Ok ( TarXzPackage ( TarPackage :: new ( stream, dl_cfg) ?) )
582582 }
@@ -586,13 +586,13 @@ impl Package for TarXzPackage {
586586 fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
587587 self . 0 . contains ( component, short_name)
588588 }
589- fn install < ' b > (
589+ fn install (
590590 & self ,
591591 target : & Components ,
592592 component : & str ,
593593 short_name : Option < & str > ,
594- tx : Transaction < ' b > ,
595- ) -> Result < Transaction < ' b > > {
594+ tx : Transaction ,
595+ ) -> Result < Transaction > {
596596 self . 0 . install ( target, component, short_name, tx)
597597 }
598598 fn components ( & self ) -> Vec < String > {
@@ -604,7 +604,7 @@ impl Package for TarXzPackage {
604604pub ( crate ) struct TarZStdPackage ( TarPackage ) ;
605605
606606impl TarZStdPackage {
607- pub ( crate ) fn new < R : Read > ( stream : R , dl_cfg : & DownloadCfg < ' _ > ) -> Result < Self > {
607+ pub ( crate ) fn new < R : Read > ( stream : R , dl_cfg : & DownloadCfg ) -> Result < Self > {
608608 let stream = zstd:: stream:: read:: Decoder :: new ( stream) ?;
609609 Ok ( TarZStdPackage ( TarPackage :: new ( stream, dl_cfg) ?) )
610610 }
@@ -614,13 +614,13 @@ impl Package for TarZStdPackage {
614614 fn contains ( & self , component : & str , short_name : Option < & str > ) -> bool {
615615 self . 0 . contains ( component, short_name)
616616 }
617- fn install < ' b > (
617+ fn install (
618618 & self ,
619619 target : & Components ,
620620 component : & str ,
621621 short_name : Option < & str > ,
622- tx : Transaction < ' b > ,
623- ) -> Result < Transaction < ' b > > {
622+ tx : Transaction ,
623+ ) -> Result < Transaction > {
624624 self . 0 . install ( target, component, short_name, tx)
625625 }
626626 fn components ( & self ) -> Vec < String > {
0 commit comments