diff --git a/benches/reject.rs b/benches/reject.rs index 287c676ce4..4f239f9866 100644 --- a/benches/reject.rs +++ b/benches/reject.rs @@ -22,7 +22,7 @@ macro_rules! sample_dist { #[bench] fn $fnn(b: &mut Bencher) { let mut rng = thread_rng(); - let dist = as UniformSampler>::new($low, $high); + let dist = UniformInt::::new($low, $high); b.iter(|| { test::black_box(dist.sample(&mut rng)); test::black_box(dist.sample(&mut rng)); @@ -38,8 +38,8 @@ macro_rules! sample_single { fn $fnn(b: &mut Bencher) { let mut rng = thread_rng(); b.iter(|| { - test::black_box( as UniformSampler>::sample_single($low, $high, &mut rng)); - test::black_box( as UniformSampler>::sample_single($low, $high, &mut rng)); + test::black_box(UniformInt::::sample_single($low, $high, &mut rng)); + test::black_box(UniformInt::::sample_single($low, $high, &mut rng)); }); } };