@@ -11,7 +11,6 @@ use crate::{dist::ToolchainDesc, toolchain::ToolchainName, utils::notify::Notifi
11
11
12
12
#[ derive( Debug ) ]
13
13
pub ( crate ) enum Notification < ' a > {
14
- CantReadUpdateHash ( & ' a Path ) ,
15
14
NoUpdateHash ( & ' a Path ) ,
16
15
FileAlreadyDownloaded ,
17
16
CachedFileChecksumFailed ,
@@ -84,8 +83,7 @@ impl Notification<'_> {
84
83
| SkippingNightlyMissingComponent ( _, _, _)
85
84
| RetryingDownload ( _)
86
85
| DownloadedManifest ( _, _) => NotificationLevel :: Info ,
87
- CantReadUpdateHash ( _)
88
- | MissingInstalledComponent ( _)
86
+ MissingInstalledComponent ( _)
89
87
| CachedFileChecksumFailed
90
88
| ForcingUnavailableComponent ( _)
91
89
| StrayHash ( _) => NotificationLevel :: Warn ,
@@ -123,11 +121,6 @@ impl Display for Notification<'_> {
123
121
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> std:: result:: Result < ( ) , fmt:: Error > {
124
122
use self :: Notification :: * ;
125
123
match self {
126
- CantReadUpdateHash ( path) => write ! (
127
- f,
128
- "can't read update hash file: '{}', can't skip update..." ,
129
- path. display( )
130
- ) ,
131
124
NoUpdateHash ( path) => write ! ( f, "no update hash at: '{}'" , path. display( ) ) ,
132
125
FileAlreadyDownloaded => write ! ( f, "reusing previously downloaded file" ) ,
133
126
CachedFileChecksumFailed => write ! ( f, "bad checksum for cached download" ) ,
0 commit comments