@@ -4,7 +4,7 @@ use std::fs;
44use std:: io:: { BufRead , ErrorKind , Write } ;
55use std:: path:: Path ;
66use std:: sync:: Arc ;
7- use std:: { cmp, env, iter } ;
7+ use std:: { cmp, env} ;
88
99use anyhow:: { anyhow, Context , Result } ;
1010use git_testament:: { git_testament, render_testament} ;
@@ -229,7 +229,7 @@ fn show_channel_updates(cfg: &Cfg, toolchains: Vec<(String, Result<UpdateStatus>
229229
230230 for ( name, banner, width, color, version, previous_version) in data {
231231 let padding = max_width - width;
232- let padding: String = iter :: repeat ( ' ' ) . take ( padding) . collect ( ) ;
232+ let padding: String = " " . repeat ( padding) ;
233233 let _ = write ! ( t, " {}" , padding) ;
234234 let _ = t. attr ( term2:: Attr :: Bold ) ;
235235 if let Some ( color) = color {
@@ -356,7 +356,7 @@ where
356356
357357pub ( crate ) fn list_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
358358 let mut t = term2:: stdout ( ) ;
359- let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
359+ let distributable = DistributableToolchain :: new_for_components ( toolchain) ?;
360360 let components = distributable. list_components ( ) ?;
361361 for component in components {
362362 if component. component . short_name_in_manifest ( ) == "rust-std" {
@@ -380,7 +380,7 @@ pub(crate) fn list_targets(toolchain: &Toolchain<'_>) -> Result<utils::ExitCode>
380380
381381pub ( crate ) fn list_installed_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
382382 let mut t = term2:: stdout ( ) ;
383- let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
383+ let distributable = DistributableToolchain :: new_for_components ( toolchain) ?;
384384 let components = distributable. list_components ( ) ?;
385385 for component in components {
386386 if component. component . short_name_in_manifest ( ) == "rust-std" {
@@ -399,7 +399,7 @@ pub(crate) fn list_installed_targets(toolchain: &Toolchain<'_>) -> Result<utils:
399399
400400pub ( crate ) fn list_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
401401 let mut t = term2:: stdout ( ) ;
402- let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
402+ let distributable = DistributableToolchain :: new_for_components ( toolchain) ?;
403403 let components = distributable. list_components ( ) ?;
404404 for component in components {
405405 let name = component. name ;
@@ -417,7 +417,7 @@ pub(crate) fn list_components(toolchain: &Toolchain<'_>) -> Result<utils::ExitCo
417417
418418pub ( crate ) fn list_installed_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
419419 let mut t = term2:: stdout ( ) ;
420- let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
420+ let distributable = DistributableToolchain :: new_for_components ( toolchain) ?;
421421 let components = distributable. list_components ( ) ?;
422422 for component in components {
423423 if component. installed {
0 commit comments