Use StandardNormal only with the "std" feature.

This commit is contained in:
Sébastien Crozet 2018-07-07 03:22:12 -07:00
parent 352e71656d
commit a1d8aba501
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ use quickcheck::{Arbitrary, Gen};
use num::{Bounded, One, Zero}; use num::{Bounded, One, Zero};
#[cfg(feature = "std")] #[cfg(feature = "std")]
use rand; use rand::{self, StandardNormal};
use rand::distributions::{Distribution, Standard, StandardNormal}; use rand::distributions::{Distribution, Standard};
use rand::Rng; use rand::Rng;
use std::iter; use std::iter;
use typenum::{self, Cmp, Greater}; use typenum::{self, Cmp, Greater};