@@ -249,7 +249,7 @@ fn show_channel_updates(cfg: &Cfg, toolchains: Vec<(String, Result<UpdateStatus>
249249 Ok ( ( ) )
250250}
251251
252- pub fn update_all_channels (
252+ pub ( crate ) fn update_all_channels (
253253 cfg : & Cfg ,
254254 do_self_update : bool ,
255255 force_update : bool ,
@@ -327,7 +327,7 @@ pub fn self_update_permitted(explicit: bool) -> Result<SelfUpdatePermission> {
327327 }
328328}
329329
330- pub fn self_update < F > ( before_restart : F ) -> Result < utils:: ExitCode >
330+ pub ( crate ) fn self_update < F > ( before_restart : F ) -> Result < utils:: ExitCode >
331331where
332332 F : FnOnce ( ) -> Result < utils:: ExitCode > ,
333333{
@@ -354,7 +354,7 @@ where
354354 Ok ( utils:: ExitCode ( 0 ) )
355355}
356356
357- pub fn list_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
357+ pub ( crate ) fn list_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
358358 let mut t = term2:: stdout ( ) ;
359359 let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
360360 let components = distributable. list_components ( ) ?;
@@ -378,7 +378,7 @@ pub fn list_targets(toolchain: &Toolchain<'_>) -> Result<utils::ExitCode> {
378378 Ok ( utils:: ExitCode ( 0 ) )
379379}
380380
381- pub fn list_installed_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
381+ pub ( crate ) fn list_installed_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
382382 let mut t = term2:: stdout ( ) ;
383383 let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
384384 let components = distributable. list_components ( ) ?;
@@ -397,7 +397,7 @@ pub fn list_installed_targets(toolchain: &Toolchain<'_>) -> Result<utils::ExitCo
397397 Ok ( utils:: ExitCode ( 0 ) )
398398}
399399
400- pub fn list_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
400+ pub ( crate ) fn list_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
401401 let mut t = term2:: stdout ( ) ;
402402 let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
403403 let components = distributable. list_components ( ) ?;
@@ -415,7 +415,7 @@ pub fn list_components(toolchain: &Toolchain<'_>) -> Result<utils::ExitCode> {
415415 Ok ( utils:: ExitCode ( 0 ) )
416416}
417417
418- pub fn list_installed_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
418+ pub ( crate ) fn list_installed_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
419419 let mut t = term2:: stdout ( ) ;
420420 let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
421421 let components = distributable. list_components ( ) ?;
@@ -460,7 +460,7 @@ fn print_toolchain_path(
460460 Ok ( ( ) )
461461}
462462
463- pub fn list_toolchains ( cfg : & Cfg , verbose : bool ) -> Result < utils:: ExitCode > {
463+ pub ( crate ) fn list_toolchains ( cfg : & Cfg , verbose : bool ) -> Result < utils:: ExitCode > {
464464 let toolchains = cfg. list_toolchains ( ) ?;
465465 if toolchains. is_empty ( ) {
466466 writeln ! ( process( ) . stdout( ) , "no installed toolchains" ) ?;
@@ -495,7 +495,7 @@ pub fn list_toolchains(cfg: &Cfg, verbose: bool) -> Result<utils::ExitCode> {
495495 Ok ( utils:: ExitCode ( 0 ) )
496496}
497497
498- pub fn list_overrides ( cfg : & Cfg ) -> Result < utils:: ExitCode > {
498+ pub ( crate ) fn list_overrides ( cfg : & Cfg ) -> Result < utils:: ExitCode > {
499499 let overrides = cfg. settings_file . with ( |s| Ok ( s. overrides . clone ( ) ) ) ?;
500500
501501 if overrides. is_empty ( ) {
@@ -538,7 +538,7 @@ pub fn version() -> &'static str {
538538 & RENDERED
539539}
540540
541- pub fn dump_testament ( ) -> Result < utils:: ExitCode > {
541+ pub ( crate ) fn dump_testament ( ) -> Result < utils:: ExitCode > {
542542 use git_testament:: GitModification :: * ;
543543 writeln ! (
544544 process( ) . stdout( ) ,
0 commit comments