Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit b6dd6ab

Browse files
committed
fixup
1 parent eb09d8f commit b6dd6ab

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/libm-test/benches/random.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::time::Duration;
44
use criterion::{Criterion, criterion_main};
55
use libm_test::gen::random;
66
use libm_test::gen::random::RandomInput;
7-
use libm_test::{CheckBasis, CheckCtx, MathOp, OpCFn, TupleCall};
7+
use libm_test::{CheckBasis, CheckCtx, MathOp, TupleCall};
88

99
/// Benchmark with this many items to get a variety
1010
const BENCH_ITER_ITEMS: usize = if cfg!(feature = "short-benchmarks") { 50 } else { 500 };
@@ -26,11 +26,10 @@ macro_rules! musl_rand_benches {
2626
$(#[$attr])*
2727
fn [< musl_bench_ $fn_name >](c: &mut Criterion) {
2828
type Op = libm_test::op::$fn_name::Routine;
29-
let musl_fn: Option<OpCFn<Op>> = $musl_fn;
3029

3130
#[cfg(feature = "build-musl")]
32-
let musl_extra = MuslExtra {
33-
musl_fn,
31+
let musl_extra = MuslExtra::<libm_test::OpCFn<Op>> {
32+
musl_fn: $musl_fn,
3433
skip_on_i586: $skip_on_i586,
3534
};
3635

0 commit comments

Comments
 (0)