@@ -11,7 +11,6 @@ use crate::{dist::ToolchainDesc, toolchain::ToolchainName, utils::notify::Notifi
1111
1212#[ derive( Debug ) ]
1313pub ( crate ) enum Notification < ' a > {
14- NoUpdateHash ( & ' a Path ) ,
1514 FileAlreadyDownloaded ,
1615 CachedFileChecksumFailed ,
1716 MissingInstalledComponent ( & ' a str ) ,
@@ -72,9 +71,7 @@ impl Notification<'_> {
7271 pub ( crate ) fn level ( & self ) -> NotificationLevel {
7372 use self :: Notification :: * ;
7473 match self {
75- NoUpdateHash ( _) | FileAlreadyDownloaded | DownloadingLegacyManifest => {
76- NotificationLevel :: Debug
77- }
74+ FileAlreadyDownloaded | DownloadingLegacyManifest => NotificationLevel :: Debug ,
7875 DownloadingComponent ( _, _, _, _)
7976 | InstallingComponent ( _, _, _)
8077 | RemovingComponent ( _, _, _)
@@ -121,7 +118,6 @@ impl Display for Notification<'_> {
121118 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> std:: result:: Result < ( ) , fmt:: Error > {
122119 use self :: Notification :: * ;
123120 match self {
124- NoUpdateHash ( path) => write ! ( f, "no update hash at: '{}'" , path. display( ) ) ,
125121 FileAlreadyDownloaded => write ! ( f, "reusing previously downloaded file" ) ,
126122 CachedFileChecksumFailed => write ! ( f, "bad checksum for cached download" ) ,
127123 MissingInstalledComponent ( c) => {
0 commit comments