Run cargo fmt
This commit is contained in:
parent
cc4427e52b
commit
3d834e08c9
@ -155,7 +155,7 @@ impl<T: Scalar, const D: usize> Distribution<Point<T, D>> for Standard
|
|||||||
where
|
where
|
||||||
Standard: Distribution<T>,
|
Standard: Distribution<T>,
|
||||||
{
|
{
|
||||||
/// Generate a `Point` where each coordinate is an independent variate from `[0, 1)`.
|
/// Generate a `Point` where each coordinate is an independent variate from `[0, 1)`.
|
||||||
#[inline]
|
#[inline]
|
||||||
fn sample<'a, G: Rng + ?Sized>(&self, rng: &mut G) -> Point<T, D> {
|
fn sample<'a, G: Rng + ?Sized>(&self, rng: &mut G) -> Point<T, D> {
|
||||||
Point::from(rng.gen::<SVector<T, D>>())
|
Point::from(rng.gen::<SVector<T, D>>())
|
||||||
|
@ -7,7 +7,7 @@ use quickcheck::{Arbitrary, Gen};
|
|||||||
|
|
||||||
#[cfg(feature = "rand-no-std")]
|
#[cfg(feature = "rand-no-std")]
|
||||||
use rand::{
|
use rand::{
|
||||||
distributions::{Distribution, OpenClosed01, Standard, Uniform, uniform::SampleUniform},
|
distributions::{uniform::SampleUniform, Distribution, OpenClosed01, Standard, Uniform},
|
||||||
Rng,
|
Rng,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ use num::Zero;
|
|||||||
|
|
||||||
#[cfg(feature = "rand-no-std")]
|
#[cfg(feature = "rand-no-std")]
|
||||||
use rand::{
|
use rand::{
|
||||||
distributions::{Distribution, OpenClosed01, Standard, Uniform, uniform::SampleUniform},
|
distributions::{uniform::SampleUniform, Distribution, OpenClosed01, Standard, Uniform},
|
||||||
Rng,
|
Rng,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
use quickcheck::{Arbitrary, Gen};
|
use quickcheck::{Arbitrary, Gen};
|
||||||
|
|
||||||
#[cfg(feature = "rand-no-std")]
|
#[cfg(feature = "rand-no-std")]
|
||||||
use rand::{distributions::{Distribution, Standard}, Rng};
|
use rand::{
|
||||||
|
distributions::{Distribution, Standard},
|
||||||
|
Rng,
|
||||||
|
};
|
||||||
|
|
||||||
use num::One;
|
use num::One;
|
||||||
use num_complex::Complex;
|
use num_complex::Complex;
|
||||||
|
Loading…
Reference in New Issue
Block a user