##// END OF EJS Templates
rhg: stop shadowing `exit` function...
Raphaël Gomès -
r50463:05ef5f09 stable
parent child Browse files
Show More
@@ -301,7 +301,7 b' fn rhg_main(argv: Vec<OsString>) -> ! {'
301 }
301 }
302 };
302 };
303
303
304 let exit =
304 let simple_exit =
305 |ui: &Ui, config: &Config, result: Result<(), CommandError>| -> ! {
305 |ui: &Ui, config: &Config, result: Result<(), CommandError>| -> ! {
306 exit(
306 exit(
307 &argv,
307 &argv,
@@ -317,7 +317,7 b' fn rhg_main(argv: Vec<OsString>) -> ! {'
317 )
317 )
318 };
318 };
319 let early_exit = |config: &Config, error: CommandError| -> ! {
319 let early_exit = |config: &Config, error: CommandError| -> ! {
320 exit(&Ui::new_infallible(config), &config, Err(error))
320 simple_exit(&Ui::new_infallible(config), &config, Err(error))
321 };
321 };
322 let repo_result = match Repo::find(&non_repo_config, repo_path.to_owned())
322 let repo_result = match Repo::find(&non_repo_config, repo_path.to_owned())
323 {
323 {
@@ -355,7 +355,7 b' fn rhg_main(argv: Vec<OsString>) -> ! {'
355 repo_result.as_ref(),
355 repo_result.as_ref(),
356 config,
356 config,
357 );
357 );
358 exit(&ui, &config, result)
358 simple_exit(&ui, &config, result)
359 }
359 }
360
360
361 fn main() -> ! {
361 fn main() -> ! {
General Comments 0
You need to be logged in to leave comments. Login now