Fix a type parameter in benchmarks (#517)

This commit is contained in:
Luyu Cheng 2020-09-02 05:28:51 +08:00 committed by GitHub
parent 84da664455
commit a691de8714
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ use cgmath::*;
#[macro_use]
mod macros;
fn bench_from_axis_angle<T: Rotation3<f32>>(bh: &mut Bencher) {
fn bench_from_axis_angle<T: Rotation3<Scalar = f32>>(bh: &mut Bencher) {
const LEN: usize = 1 << 13;
let mut rng = SmallRng::from_entropy();