File tree 3 files changed +7
-10
lines changed
3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "description" : " use `-q` when gathering the installed toolchains" ,
3
+ "issues" : [1645 ],
4
+ "type" : " fixed"
5
+ }
File renamed without changes.
Original file line number Diff line number Diff line change @@ -85,18 +85,10 @@ pub fn active_toolchain(msg_info: &mut MessageInfo) -> Result<String> {
85
85
86
86
pub fn installed_toolchains ( msg_info : & mut MessageInfo ) -> Result < Vec < String > > {
87
87
let out = rustup_command ( msg_info, true )
88
- . args ( [ "toolchain" , "list" ] )
88
+ . args ( [ "--quiet" , " toolchain", "list" ] )
89
89
. run_and_get_stdout ( msg_info) ?;
90
90
91
- Ok ( out
92
- . lines ( )
93
- . map ( |l| {
94
- l. replace ( " (default)" , "" )
95
- . replace ( " (override)" , "" )
96
- . trim ( )
97
- . to_owned ( )
98
- } )
99
- . collect ( ) )
91
+ Ok ( out. lines ( ) . map ( |l| l. trim ( ) . to_owned ( ) ) . collect ( ) )
100
92
}
101
93
102
94
pub fn available_targets (
You can’t perform that action at this time.
0 commit comments