Skip to content
Myr

Rename function

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 2040810 · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:src/main.rs+4 added-3 removed
113 unmodified lines
114}115116fn run() -> Result<()> {117 let matches = get_arg_matches(env::args_os());118 let options = build_hyperfine_options(&matches)?;118 let options = convert_cli_arguments_to_options(&matches)?;119 let commands = build_commands(&matches)?;120 let export_manager = build_export_manager(&matches)?;121122 run_benchmarks_and_print_comparison(&commands, &options, &export_manager)
8 unmodified lines
131 }132 }133}134135/// Build the HyperfineOptions that correspond to the given ArgMatches136fn build_hyperfine_options<'a>(matches: &ArgMatches) -> Result<HyperfineOptions, OptionsError<'a>> {135fn convert_cli_arguments_to_options<'a>(136 matches: &ArgMatches,137) -> Result<HyperfineOptions, OptionsError<'a>> {138 // Enabled ANSI colors on Windows 10139 #[cfg(windows)]140 colored::control::set_virtual_terminal(true).unwrap();141
304 unmodified lines