@@ -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
- NoUpdateHash ( & ' a Path ) ,
15
14
FileAlreadyDownloaded ,
16
15
CachedFileChecksumFailed ,
17
16
MissingInstalledComponent ( & ' a str ) ,
@@ -72,9 +71,7 @@ impl Notification<'_> {
72
71
pub ( crate ) fn level ( & self ) -> NotificationLevel {
73
72
use self :: Notification :: * ;
74
73
match self {
75
- NoUpdateHash ( _) | FileAlreadyDownloaded | DownloadingLegacyManifest => {
76
- NotificationLevel :: Debug
77
- }
74
+ FileAlreadyDownloaded | DownloadingLegacyManifest => NotificationLevel :: Debug ,
78
75
DownloadingComponent ( _, _, _, _)
79
76
| InstallingComponent ( _, _, _)
80
77
| RemovingComponent ( _, _, _)
@@ -121,7 +118,6 @@ impl Display for Notification<'_> {
121
118
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> std:: result:: Result < ( ) , fmt:: Error > {
122
119
use self :: Notification :: * ;
123
120
match self {
124
- NoUpdateHash ( path) => write ! ( f, "no update hash at: '{}'" , path. display( ) ) ,
125
121
FileAlreadyDownloaded => write ! ( f, "reusing previously downloaded file" ) ,
126
122
CachedFileChecksumFailed => write ! ( f, "bad checksum for cached download" ) ,
127
123
MissingInstalledComponent ( c) => {
0 commit comments