@@ -249,7 +249,7 @@ fn show_channel_updates(cfg: &Cfg, toolchains: Vec<(String, Result<UpdateStatus>
249
249
Ok ( ( ) )
250
250
}
251
251
252
- pub fn update_all_channels (
252
+ pub ( crate ) fn update_all_channels (
253
253
cfg : & Cfg ,
254
254
do_self_update : bool ,
255
255
force_update : bool ,
@@ -327,7 +327,7 @@ pub fn self_update_permitted(explicit: bool) -> Result<SelfUpdatePermission> {
327
327
}
328
328
}
329
329
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 >
331
331
where
332
332
F : FnOnce ( ) -> Result < utils:: ExitCode > ,
333
333
{
@@ -354,7 +354,7 @@ where
354
354
Ok ( utils:: ExitCode ( 0 ) )
355
355
}
356
356
357
- pub fn list_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
357
+ pub ( crate ) fn list_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
358
358
let mut t = term2:: stdout ( ) ;
359
359
let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
360
360
let components = distributable. list_components ( ) ?;
@@ -378,7 +378,7 @@ pub fn list_targets(toolchain: &Toolchain<'_>) -> Result<utils::ExitCode> {
378
378
Ok ( utils:: ExitCode ( 0 ) )
379
379
}
380
380
381
- pub fn list_installed_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
381
+ pub ( crate ) fn list_installed_targets ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
382
382
let mut t = term2:: stdout ( ) ;
383
383
let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
384
384
let components = distributable. list_components ( ) ?;
@@ -397,7 +397,7 @@ pub fn list_installed_targets(toolchain: &Toolchain<'_>) -> Result<utils::ExitCo
397
397
Ok ( utils:: ExitCode ( 0 ) )
398
398
}
399
399
400
- pub fn list_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
400
+ pub ( crate ) fn list_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
401
401
let mut t = term2:: stdout ( ) ;
402
402
let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
403
403
let components = distributable. list_components ( ) ?;
@@ -415,7 +415,7 @@ pub fn list_components(toolchain: &Toolchain<'_>) -> Result<utils::ExitCode> {
415
415
Ok ( utils:: ExitCode ( 0 ) )
416
416
}
417
417
418
- pub fn list_installed_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
418
+ pub ( crate ) fn list_installed_components ( toolchain : & Toolchain < ' _ > ) -> Result < utils:: ExitCode > {
419
419
let mut t = term2:: stdout ( ) ;
420
420
let distributable = DistributableToolchain :: new_for_components ( & toolchain) ?;
421
421
let components = distributable. list_components ( ) ?;
@@ -460,7 +460,7 @@ fn print_toolchain_path(
460
460
Ok ( ( ) )
461
461
}
462
462
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 > {
464
464
let toolchains = cfg. list_toolchains ( ) ?;
465
465
if toolchains. is_empty ( ) {
466
466
writeln ! ( process( ) . stdout( ) , "no installed toolchains" ) ?;
@@ -495,7 +495,7 @@ pub fn list_toolchains(cfg: &Cfg, verbose: bool) -> Result<utils::ExitCode> {
495
495
Ok ( utils:: ExitCode ( 0 ) )
496
496
}
497
497
498
- pub fn list_overrides ( cfg : & Cfg ) -> Result < utils:: ExitCode > {
498
+ pub ( crate ) fn list_overrides ( cfg : & Cfg ) -> Result < utils:: ExitCode > {
499
499
let overrides = cfg. settings_file . with ( |s| Ok ( s. overrides . clone ( ) ) ) ?;
500
500
501
501
if overrides. is_empty ( ) {
@@ -538,7 +538,7 @@ pub fn version() -> &'static str {
538
538
& RENDERED
539
539
}
540
540
541
- pub fn dump_testament ( ) -> Result < utils:: ExitCode > {
541
+ pub ( crate ) fn dump_testament ( ) -> Result < utils:: ExitCode > {
542
542
use git_testament:: GitModification :: * ;
543
543
writeln ! (
544
544
process( ) . stdout( ) ,
0 commit comments