Rename function

This commit is contained in:
David Peter authored and David Peter committed 2022-02-06 20:19:50 +01:00
1 parent 2040810ce3
commit c6477c7368
1 file changed
+4 -3
+4 -3
View File
@@ -115,7 +115,7 @@ fn run_benchmarks_and_print_comparison(
fn run() -> Result<()> {
let matches = get_arg_matches(env::args_os());
let options = build_hyperfine_options(&matches)?;
let options = convert_cli_arguments_to_options(&matches)?;
let commands = build_commands(&matches)?;
let export_manager = build_export_manager(&matches)?;
@@ -132,8 +132,9 @@ fn main() {
}
}
/// Build the HyperfineOptions that correspond to the given ArgMatches
fn build_hyperfine_options<'a>(matches: &ArgMatches) -> Result<HyperfineOptions, OptionsError<'a>> {
fn convert_cli_arguments_to_options<'a>(
matches: &ArgMatches,
) -> Result<HyperfineOptions, OptionsError<'a>> {
// Enabled ANSI colors on Windows 10
#[cfg(windows)]
colored::control::set_virtual_terminal(true).unwrap();