@@ -797,7 +797,7 @@ async fn default_(
797
797
}
798
798
799
799
async 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 ( ) ;
801
801
let use_colors = matches ! ( t. color_choice( ) , ColorChoice :: Auto | ColorChoice :: Always ) ;
802
802
let mut update_available = false ;
803
803
let channels = cfg. list_channels ( ) ?;
@@ -890,7 +890,7 @@ async fn check_updates(cfg: &Cfg<'_>, opts: CheckOpts) -> Result<utils::ExitCode
890
890
. await
891
891
} ;
892
892
893
- let t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
893
+ let t = cfg. process . stdout ( ) ;
894
894
for result in channels {
895
895
let ( update_a, message) = result?;
896
896
if update_a {
@@ -1072,7 +1072,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
1072
1072
1073
1073
// Print host triple
1074
1074
{
1075
- let mut t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
1075
+ let mut t = cfg. process . stdout ( ) ;
1076
1076
t. attr ( terminalsource:: Attr :: Bold ) ?;
1077
1077
write ! ( t. lock( ) , "Default host: " ) ?;
1078
1078
t. reset ( ) ?;
@@ -1081,7 +1081,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
1081
1081
1082
1082
// Print rustup home directory
1083
1083
{
1084
- let mut t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
1084
+ let mut t = cfg. process . stdout ( ) ;
1085
1085
t. attr ( terminalsource:: Attr :: Bold ) ?;
1086
1086
write ! ( t. lock( ) , "rustup home: " ) ?;
1087
1087
t. reset ( ) ?;
@@ -1121,7 +1121,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
1121
1121
1122
1122
// show installed toolchains
1123
1123
{
1124
- let mut t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
1124
+ let mut t = cfg. process . stdout ( ) ;
1125
1125
1126
1126
print_header :: < Error > ( & mut t, "installed toolchains" ) ?;
1127
1127
@@ -1157,7 +1157,7 @@ async fn show(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode> {
1157
1157
1158
1158
// show active toolchain
1159
1159
{
1160
- let mut t = cfg. process . stdout ( ) . terminal ( cfg . process ) ;
1160
+ let mut t = cfg. process . stdout ( ) ;
1161
1161
1162
1162
writeln ! ( t. lock( ) ) ?;
1163
1163
0 commit comments