Move relative-speed computation to separate module

This commit is contained in:
David Peter authored and David Peter committed 2021-08-24 22:44:08 +02:00
1 parent d5a2590b98
commit 76dd9d40f0
4 files changed
+100 -100

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ use std::io::{Error, ErrorKind, Result};
use super::Exporter;
use crate::benchmark_result::BenchmarkResult;
use crate::format::format_duration_value;
use crate::internal::{compute_relative_speed, BenchmarkResultWithRelativeSpeed};
use crate::relative_speed::{self, BenchmarkResultWithRelativeSpeed};
use crate::units::Unit;
#[derive(Default)]
@@ -22,7 +22,7 @@ impl Exporter for MarkdownExporter {
Unit::Second
};
if let Some(annotated_results) = compute_relative_speed(results) {
if let Some(annotated_results) = relative_speed::compute(results) {
let mut destination = start_table(unit);
for result in annotated_results {