@@ -11,7 +11,6 @@ use crate::{dist::ToolchainDesc, toolchain::ToolchainName, utils::notify::Notifi
1111
1212#[ derive( Debug ) ]
1313pub ( crate ) enum Notification < ' a > {
14- CantReadUpdateHash ( & ' a Path ) ,
1514 NoUpdateHash ( & ' a Path ) ,
1615 FileAlreadyDownloaded ,
1716 CachedFileChecksumFailed ,
@@ -84,8 +83,7 @@ impl Notification<'_> {
8483 | SkippingNightlyMissingComponent ( _, _, _)
8584 | RetryingDownload ( _)
8685 | DownloadedManifest ( _, _) => NotificationLevel :: Info ,
87- CantReadUpdateHash ( _)
88- | MissingInstalledComponent ( _)
86+ MissingInstalledComponent ( _)
8987 | CachedFileChecksumFailed
9088 | ForcingUnavailableComponent ( _)
9189 | StrayHash ( _) => NotificationLevel :: Warn ,
@@ -123,11 +121,6 @@ impl Display for Notification<'_> {
123121 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> std:: result:: Result < ( ) , fmt:: Error > {
124122 use self :: Notification :: * ;
125123 match self {
126- CantReadUpdateHash ( path) => write ! (
127- f,
128- "can't read update hash file: '{}', can't skip update..." ,
129- path. display( )
130- ) ,
131124 NoUpdateHash ( path) => write ! ( f, "no update hash at: '{}'" , path. display( ) ) ,
132125 FileAlreadyDownloaded => write ! ( f, "reusing previously downloaded file" ) ,
133126 CachedFileChecksumFailed => write ! ( f, "bad checksum for cached download" ) ,
0 commit comments