mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Rename function
This commit is contained in:
1 parent
2040810ce3
commit
c6477c7368
1 file changed
+4
-3
+4
-3
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user