@@ -4,7 +4,7 @@ use std::path::{Path, PathBuf};
44use crate :: dist:: TargetTriple ;
55use crate :: settings:: MetadataVersion ;
66use crate :: utils:: units;
7- use crate :: { dist :: ToolchainDesc , toolchain:: ToolchainName , utils:: notify:: NotificationLevel } ;
7+ use crate :: { toolchain:: ToolchainName , utils:: notify:: NotificationLevel } ;
88
99#[ derive( Debug ) ]
1010pub ( crate ) enum Notification < ' a > {
@@ -30,7 +30,6 @@ pub(crate) enum Notification<'a> {
3030 UpdatingToolchain ( & ' a str ) ,
3131 InstallingToolchain ( & ' a str ) ,
3232 InstalledToolchain ( & ' a str ) ,
33- UsingExistingToolchain ( & ' a ToolchainDesc ) ,
3433 UninstallingToolchain ( & ' a ToolchainName ) ,
3534 UninstalledToolchain ( & ' a ToolchainName ) ,
3635 UpdateHashMatches ,
@@ -63,8 +62,7 @@ impl Notification<'_> {
6362 | ReadMetadataVersion ( _)
6463 | InstalledToolchain ( _)
6564 | UpdateHashMatches => NotificationLevel :: Debug ,
66- UsingExistingToolchain ( _)
67- | UninstallingToolchain ( _)
65+ UninstallingToolchain ( _)
6866 | UninstalledToolchain ( _)
6967 | UpgradingMetadata ( _, _)
7068 | MetadataUpgradeNotNeeded ( _) => NotificationLevel :: Info ,
@@ -100,7 +98,6 @@ impl Display for Notification<'_> {
10098 UpdatingToolchain ( name) => write ! ( f, "updating existing install for '{name}'" ) ,
10199 InstallingToolchain ( name) => write ! ( f, "installing toolchain '{name}'" ) ,
102100 InstalledToolchain ( name) => write ! ( f, "toolchain '{name}' installed" ) ,
103- UsingExistingToolchain ( name) => write ! ( f, "using existing install for '{name}'" ) ,
104101 UninstallingToolchain ( name) => write ! ( f, "uninstalling toolchain '{name}'" ) ,
105102 UninstalledToolchain ( name) => write ! ( f, "toolchain '{name}' uninstalled" ) ,
106103 UpdateHashMatches => write ! ( f, "toolchain is already up to date" ) ,
0 commit comments