@@ -38,10 +38,7 @@ use crate::{
3838 } ,
3939 errors:: RustupError ,
4040 install:: { InstallMethod , UpdateStatus } ,
41- process:: {
42- Process ,
43- terminal_source:: { self , ColorableTerminal } ,
44- } ,
41+ process:: { Attr , ColorableTerminal , Process } ,
4542 toolchain:: {
4643 CustomToolchainName , DistributableToolchain , LocalToolchainName ,
4744 MaybeResolvableToolchainName , ResolvableLocalToolchainName , ResolvableToolchainName ,
@@ -1074,7 +1071,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
10741071 // Print host triple
10751072 {
10761073 let mut t = cfg. process . stdout ( ) ;
1077- t. attr ( terminal_source :: Attr :: Bold ) ?;
1074+ t. attr ( Attr :: Bold ) ?;
10781075 write ! ( t. lock( ) , "Default host: " ) ?;
10791076 t. reset ( ) ?;
10801077 writeln ! ( t. lock( ) , "{}" , cfg. get_default_host_triple( ) ?) ?;
@@ -1083,7 +1080,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
10831080 // Print rustup home directory
10841081 {
10851082 let mut t = cfg. process . stdout ( ) ;
1086- t. attr ( terminal_source :: Attr :: Bold ) ?;
1083+ t. attr ( Attr :: Bold ) ?;
10871084 write ! ( t. lock( ) , "rustup home: " ) ?;
10881085 t. reset ( ) ?;
10891086 writeln ! ( t. lock( ) , "{}" , cfg. rustup_dir. display( ) ) ?;
@@ -1195,7 +1192,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
11951192 where
11961193 E : From < io:: Error > ,
11971194 {
1198- t. attr ( terminal_source :: Attr :: Bold ) ?;
1195+ t. attr ( Attr :: Bold ) ?;
11991196 {
12001197 let mut term_lock = t. lock ( ) ;
12011198 writeln ! ( term_lock, "{s}" ) ?;
0 commit comments