From c6477c7368c06bc282e020d94d9330994d275e9a Mon Sep 17 00:00:00 2001 From: David Peter Date: Sun, 6 Feb 2022 17:47:21 +0100 Subject: [PATCH] Rename function --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5ed7ee7..84f8b17 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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> { +fn convert_cli_arguments_to_options<'a>( + matches: &ArgMatches, +) -> Result> { // Enabled ANSI colors on Windows 10 #[cfg(windows)] colored::control::set_virtual_terminal(true).unwrap();