11use std:: fmt:: { self , Display } ;
22use std:: path:: { Path , PathBuf } ;
33
4- use url:: Url ;
5-
64use crate :: dist:: TargetTriple ;
75use crate :: settings:: MetadataVersion ;
86use crate :: utils:: units;
@@ -15,7 +13,6 @@ pub(crate) enum Notification<'a> {
1513 /// The URL of the download is passed as the last argument, to allow us to track concurrent downloads.
1614 DownloadingComponent ( & ' a str , & ' a TargetTriple , Option < & ' a TargetTriple > , & ' a str ) ,
1715 RetryingDownload ( & ' a str ) ,
18- DownloadingFile ( & ' a Url ) ,
1916 /// Received the Content-Length of the to-be downloaded data with
2017 /// the respective URL of the download (for tracking concurrent downloads).
2118 DownloadContentLengthReceived ( u64 , Option < & ' a str > ) ,
@@ -63,8 +60,7 @@ impl Notification<'_> {
6360 DownloadingComponent ( _, _, _, _) | RetryingDownload ( _) => NotificationLevel :: Info ,
6461 CachedFileChecksumFailed => NotificationLevel :: Warn ,
6562 SetDefaultBufferSize ( _) => NotificationLevel :: Trace ,
66- DownloadingFile ( _)
67- | DownloadContentLengthReceived ( _, _)
63+ DownloadContentLengthReceived ( _, _)
6864 | DownloadDataReceived ( _, _)
6965 | DownloadFinished ( _)
7066 | DownloadFailed ( _)
@@ -110,7 +106,6 @@ impl Display for Notification<'_> {
110106 "using up to {} of RAM to unpack components" ,
111107 units:: Size :: new( * size)
112108 ) ,
113- DownloadingFile ( url) => write ! ( f, "downloading file from: '{url}'" ) ,
114109 DownloadContentLengthReceived ( len, _) => write ! ( f, "download size is: '{len}'" ) ,
115110 DownloadDataReceived ( data, _) => write ! ( f, "received some data of size {}" , data. len( ) ) ,
116111 DownloadFinished ( _) => write ! ( f, "download finished" ) ,
0 commit comments