rhg: stop shadowing `exit` function
This will be useful for the next patch which needs it.
--- a/rust/rhg/src/main.rs Thu Nov 03 15:43:04 2022 +0100
+++ b/rust/rhg/src/main.rs Thu Nov 03 15:57:37 2022 +0100
@@ -301,7 +301,7 @@
}
};
- let exit =
+ let simple_exit =
|ui: &Ui, config: &Config, result: Result<(), CommandError>| -> ! {
exit(
&argv,
@@ -317,7 +317,7 @@
)
};
let early_exit = |config: &Config, error: CommandError| -> ! {
- exit(&Ui::new_infallible(config), &config, Err(error))
+ simple_exit(&Ui::new_infallible(config), &config, Err(error))
};
let repo_result = match Repo::find(&non_repo_config, repo_path.to_owned())
{
@@ -355,7 +355,7 @@
repo_result.as_ref(),
config,
);
- exit(&ui, &config, result)
+ simple_exit(&ui, &config, result)
}
fn main() -> ! {