@@ -103,7 +103,10 @@ pub fn create_sub_cmd(args_cfg: &crate::cmd_line::ArgsCfg) -> Command {
103103 )
104104 . arg (
105105 Arg :: new ( "PACKAGE_NAME" )
106- . help ( "The name of the package with optional version requirement (e.g., [email protected] )" ) 106+ . help (
107+ "The name of the package with optional version \
108+ requirement (e.g., [email protected] )", 109+ )
107110 . required ( false ) ,
108111 )
109112 . arg (
@@ -194,7 +197,8 @@ pub fn parse_sub_cmd(sub_cmd_args: &ArgMatches) -> Result<InstallCommand> {
194197
195198 if sub_cmd_args. get_one :: < String > ( "PACKAGE_NAME" ) . is_some ( ) {
196199 return Err ( anyhow:: anyhow!(
197- "PACKAGE_NAME is not required when a local path is specified."
200+ "PACKAGE_NAME is not required when a local path is \
201+ specified."
198202 ) ) ;
199203 }
200204 } else {
@@ -531,9 +535,10 @@ pub async fn execute_cmd(
531535 || local_version_str. contains ( "," )
532536 {
533537 return Err ( anyhow ! (
534- "Invalid version requirement '{}' in local package manifest: contains forbidden characters (||, whitespace, or ,)" ,
535- local_version_str
536- ) ) ;
538+ "Invalid version requirement '{}' in local package manifest: \
539+ contains forbidden characters (||, whitespace, or ,)",
540+ local_version_str
541+ ) ) ;
537542 }
538543 let installing_pkg_version_req = VersionReq :: parse ( & local_version_str) ?;
539544
@@ -590,8 +595,8 @@ pub async fn execute_cmd(
590595 }
591596
592597 out. normal_line ( & format ! (
593- "{} Attempting to retrieve information about locked packages \
594- from manifest-lock.json...",
598+ "{} Attempting to retrieve information about locked packages from \
599+ manifest-lock.json...",
595600 Emoji ( "📜" , "" )
596601 ) ) ;
597602
@@ -609,9 +614,7 @@ from manifest-lock.json...",
609614 tman_config. clone ( ) ,
610615 & command_data. support ,
611616 initial_pkgs_to_find_candidates,
612- dep_relationship_from_cmd_line
613- . as_ref ( )
614- . map ( |rel| & rel. dependency ) ,
617+ dep_relationship_from_cmd_line. as_ref ( ) . map ( |rel| & rel. dependency ) ,
615618 & all_compatible_installed_pkgs,
616619 all_candidates,
617620 locked_pkgs. as_ref ( ) ,
@@ -681,8 +684,8 @@ from manifest-lock.json...",
681684 if out. is_interactive ( ) {
682685 // "y" for continuing to install, "n" for stopping.
683686 let ans = Confirm :: new (
684- "Warning!!! Some local packages will be overwritten, \
685- do you want to continue?",
687+ "Warning!!! Some local packages will be overwritten, do \
688+ you want to continue?",
686689 )
687690 . with_default ( false )
688691 . prompt ( ) ;
0 commit comments