mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 17:11:28 +00:00
Fix warnings
This commit is contained in:
1 parent
5e32684411
commit
b6abc025bc
1 file changed
+2
-2
@@ -98,7 +98,7 @@ pub fn compute_with_check_from_reference<'a>(
|
|||||||
pub fn compute_with_check(
|
pub fn compute_with_check(
|
||||||
results: &[BenchmarkResult],
|
results: &[BenchmarkResult],
|
||||||
sort_order: SortOrder,
|
sort_order: SortOrder,
|
||||||
) -> Option<Vec<BenchmarkResultWithRelativeSpeed>> {
|
) -> Option<Vec<BenchmarkResultWithRelativeSpeed<'_>>> {
|
||||||
let fastest = fastest_of(results);
|
let fastest = fastest_of(results);
|
||||||
|
|
||||||
if fastest.mean == 0.0 {
|
if fastest.mean == 0.0 {
|
||||||
@@ -112,7 +112,7 @@ pub fn compute_with_check(
|
|||||||
pub fn compute(
|
pub fn compute(
|
||||||
results: &[BenchmarkResult],
|
results: &[BenchmarkResult],
|
||||||
sort_order: SortOrder,
|
sort_order: SortOrder,
|
||||||
) -> Vec<BenchmarkResultWithRelativeSpeed> {
|
) -> Vec<BenchmarkResultWithRelativeSpeed<'_>> {
|
||||||
let fastest = fastest_of(results);
|
let fastest = fastest_of(results);
|
||||||
|
|
||||||
compute_relative_speeds(results, fastest, sort_order)
|
compute_relative_speeds(results, fastest, sort_order)
|
||||||
|
|||||||
Reference in new issue
Block a user