@@ -3,8 +3,8 @@ use std::path::{Path, PathBuf};
33
44use crate :: dist:: TargetTriple ;
55use crate :: settings:: MetadataVersion ;
6+ use crate :: utils:: notify:: NotificationLevel ;
67use crate :: utils:: units;
7- use crate :: { toolchain:: ToolchainName , utils:: notify:: NotificationLevel } ;
88
99#[ derive( Debug ) ]
1010pub ( crate ) enum Notification < ' a > {
@@ -26,8 +26,6 @@ pub(crate) enum Notification<'a> {
2626 /// member, but the notification callback is already narrowed to
2727 /// utils::notifications by the time tar unpacking is called.
2828 SetDefaultBufferSize ( usize ) ,
29- UninstallingToolchain ( & ' a ToolchainName ) ,
30- UninstalledToolchain ( & ' a ToolchainName ) ,
3129 UpgradingMetadata ( MetadataVersion , MetadataVersion ) ,
3230 MetadataUpgradeNotNeeded ( MetadataVersion ) ,
3331 ReadMetadataVersion ( MetadataVersion ) ,
@@ -52,10 +50,7 @@ impl Notification<'_> {
5250 | DownloadFinished ( _)
5351 | DownloadFailed ( _) => NotificationLevel :: Debug ,
5452 ReadMetadataVersion ( _) => NotificationLevel :: Debug ,
55- UninstallingToolchain ( _)
56- | UninstalledToolchain ( _)
57- | UpgradingMetadata ( _, _)
58- | MetadataUpgradeNotNeeded ( _) => NotificationLevel :: Info ,
53+ UpgradingMetadata ( _, _) | MetadataUpgradeNotNeeded ( _) => NotificationLevel :: Info ,
5954 UpgradeRemovesToolchains | DuplicateToolchainFile { .. } => NotificationLevel :: Warn ,
6055 }
6156 }
@@ -84,8 +79,6 @@ impl Display for Notification<'_> {
8479 DownloadDataReceived ( data, _) => write ! ( f, "received some data of size {}" , data. len( ) ) ,
8580 DownloadFinished ( _) => write ! ( f, "download finished" ) ,
8681 DownloadFailed ( _) => write ! ( f, "download failed" ) ,
87- UninstallingToolchain ( name) => write ! ( f, "uninstalling toolchain '{name}'" ) ,
88- UninstalledToolchain ( name) => write ! ( f, "toolchain '{name}' uninstalled" ) ,
8982 UpgradingMetadata ( from_ver, to_ver) => write ! (
9083 f,
9184 "upgrading metadata version from '{from_ver}' to '{to_ver}'"
0 commit comments