diff options
| author | bors <bors@rust-lang.org> | 2014-01-08 10:06:45 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-08 10:06:45 -0800 |
| commit | 430652c970db41f718936bb649516c401b02964b (patch) | |
| tree | a41d51a20c1b3c876a345039bcfdd86a5c9b8cc2 /src/libstd/rand/distributions/gamma.rs | |
| parent | f3a8baafbecdb6e41f001c8f218d4796a9ca8d40 (diff) | |
| parent | 0547fb9cad4053f3ec66e722b7a05df259d63038 (diff) | |
| download | rust-430652c970db41f718936bb649516c401b02964b.tar.gz rust-430652c970db41f718936bb649516c401b02964b.zip | |
auto merge of #11370 : alexcrichton/rust/issue-10465, r=pwalton
Turned out to be a 2-line fix, but the compiler fallout was huge.
Diffstat (limited to 'src/libstd/rand/distributions/gamma.rs')
| -rw-r--r-- | src/libstd/rand/distributions/gamma.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libstd/rand/distributions/gamma.rs b/src/libstd/rand/distributions/gamma.rs index 731baa0f305..96efa948015 100644 --- a/src/libstd/rand/distributions/gamma.rs +++ b/src/libstd/rand/distributions/gamma.rs @@ -10,10 +10,11 @@ //! The Gamma and derived distributions. +use num::Algebraic; +use num; use rand::{Rng, Open01}; -use super::{IndependentSample, Sample, Exp}; use super::normal::StandardNormal; -use num; +use super::{IndependentSample, Sample, Exp}; /// The Gamma distribution `Gamma(shape, scale)` distribution. /// @@ -309,10 +310,10 @@ impl IndependentSample<f64> for StudentT { #[cfg(test)] mod test { + use rand::distributions::*; + use prelude::*; use rand::*; use super::*; - use iter::range; - use option::{Some, None}; #[test] fn test_chi_squared_one() { @@ -370,13 +371,12 @@ mod test { #[cfg(test)] mod bench { - use super::*; + use extra::test::BenchHarness; use mem::size_of; + use prelude::*; use rand::distributions::IndependentSample; use rand::{StdRng, RAND_BENCH_N}; - use extra::test::BenchHarness; - use iter::range; - use option::{Some, None}; + use super::*; #[bench] |
