Skip to content
Myr

Fixed error with borrowing

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

authored by knidarkness · committed by David Peter · parent 08ad79a · Browse files · 1 file+3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:src/main.rs+3 added-3 removed
53 unmodified lines
54 let matches = get_arg_matches(env::args_os());55 let options = build_hyperfine_options(&matches);56 let export_manager = build_export_manager(&matches);57 let commands = build_commands(&matches);58 let unwrapped_opts = options.unwrap();5859 let res = match options {60 Ok(ref opts) => run(&commands, &opts),61 Err(ref e) => error(e.description()),62 };6364 match res {65 Ok(timing_results) => {66 let unwrapped = options.unwrap();67 if unwrapped_opts.output_style != OutputStyleOption::None { write_benchmark_comparison(&timing_results); }68 let ans = export_manager.write_results(timing_results, unwrapped_opts.time_unit);67 if unwrapped.output_style != OutputStyleOption::None { write_benchmark_comparison(&timing_results); }68 let ans = export_manager.write_results(timing_results, unwrapped.time_unit);69 if let Err(e) = ans {70 error(&format!(71 "The following error occurred while exporting: {}",72 e.description()
138 unmodified lines