@@ -797,7 +797,7 @@ async fn default_(
797797}
798798
799799async fn check_updates ( cfg : & Cfg < ' _ > , opts : CheckOpts ) -> Result < utils:: ExitCode > {
800- let t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
800+ let t = cfg. process . stdout ( ) ;
801801 let use_colors = matches ! ( t. color_choice( ) , ColorChoice :: Auto | ColorChoice :: Always ) ;
802802 let mut update_available = false ;
803803 let channels = cfg. list_channels ( ) ?;
@@ -890,7 +890,7 @@ async fn check_updates(cfg: &Cfg<'_>, opts: CheckOpts) -> Result<utils::ExitCode
890890 . await
891891 } ;
892892
893- let t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
893+ let t = cfg. process . stdout ( ) ;
894894 for result in channels {
895895 let ( update_a, message) = result?;
896896 if update_a {
@@ -1072,7 +1072,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
10721072
10731073 // Print host triple
10741074 {
1075- let mut t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
1075+ let mut t = cfg. process . stdout ( ) ;
10761076 t. attr ( terminalsource:: Attr :: Bold ) ?;
10771077 write ! ( t. lock( ) , "Default host: " ) ?;
10781078 t. reset ( ) ?;
@@ -1081,7 +1081,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
10811081
10821082 // Print rustup home directory
10831083 {
1084- let mut t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
1084+ let mut t = cfg. process . stdout ( ) ;
10851085 t. attr ( terminalsource:: Attr :: Bold ) ?;
10861086 write ! ( t. lock( ) , "rustup home: " ) ?;
10871087 t. reset ( ) ?;
@@ -1121,7 +1121,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
11211121
11221122 // show installed toolchains
11231123 {
1124- let mut t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
1124+ let mut t = cfg. process . stdout ( ) ;
11251125
11261126 print_header :: < Error > ( & mut t, "installed toolchains" ) ?;
11271127
@@ -1157,7 +1157,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
11571157
11581158 // show active toolchain
11591159 {
1160- let mut t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
1160+ let mut t = cfg. process . stdout ( ) ;
11611161
11621162 writeln ! ( t. lock( ) ) ?;
11631163
0 commit comments