mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 09:01:25 +00:00
Do not pass 'unit' into determine_unit_from_results
This commit is contained in:
1 parent
8741d05d11
commit
6fe7738165
2 files changed
+9
-12
No files matched your search
@@ -28,7 +28,7 @@ pub struct MarkdownExporter {}
|
||||
|
||||
impl Exporter for MarkdownExporter {
|
||||
fn serialize(&self, results: &[BenchmarkResult], unit: Option<Unit>) -> Result<Vec<u8>> {
|
||||
let unit = determine_unit_from_results(results, unit);
|
||||
let unit = unit.unwrap_or_else(|| determine_unit_from_results(&results));
|
||||
let entries = relative_speed::compute(results);
|
||||
if entries.is_none() {
|
||||
return Err(anyhow!(
|
||||
|
||||
Reference in new issue
Block a user