1
1
use std:: fmt:: { self , Display } ;
2
2
use std:: path:: { Path , PathBuf } ;
3
3
4
- use url:: Url ;
5
-
6
4
use crate :: dist:: TargetTriple ;
7
5
use crate :: settings:: MetadataVersion ;
8
6
use crate :: utils:: units;
@@ -15,7 +13,6 @@ pub(crate) enum Notification<'a> {
15
13
/// The URL of the download is passed as the last argument, to allow us to track concurrent downloads.
16
14
DownloadingComponent ( & ' a str , & ' a TargetTriple , Option < & ' a TargetTriple > , & ' a str ) ,
17
15
RetryingDownload ( & ' a str ) ,
18
- DownloadingFile ( & ' a Url ) ,
19
16
/// Received the Content-Length of the to-be downloaded data with
20
17
/// the respective URL of the download (for tracking concurrent downloads).
21
18
DownloadContentLengthReceived ( u64 , Option < & ' a str > ) ,
@@ -63,8 +60,7 @@ impl Notification<'_> {
63
60
DownloadingComponent ( _, _, _, _) | RetryingDownload ( _) => NotificationLevel :: Info ,
64
61
CachedFileChecksumFailed => NotificationLevel :: Warn ,
65
62
SetDefaultBufferSize ( _) => NotificationLevel :: Trace ,
66
- DownloadingFile ( _)
67
- | DownloadContentLengthReceived ( _, _)
63
+ DownloadContentLengthReceived ( _, _)
68
64
| DownloadDataReceived ( _, _)
69
65
| DownloadFinished ( _)
70
66
| DownloadFailed ( _)
@@ -110,7 +106,6 @@ impl Display for Notification<'_> {
110
106
"using up to {} of RAM to unpack components" ,
111
107
units:: Size :: new( * size)
112
108
) ,
113
- DownloadingFile ( url) => write ! ( f, "downloading file from: '{url}'" ) ,
114
109
DownloadContentLengthReceived ( len, _) => write ! ( f, "download size is: '{len}'" ) ,
115
110
DownloadDataReceived ( data, _) => write ! ( f, "received some data of size {}" , data. len( ) ) ,
116
111
DownloadFinished ( _) => write ! ( f, "download finished" ) ,
0 commit comments