Run cargo fmt

This commit is contained in:
Crozet Sébastien 2021-04-11 14:09:01 +02:00
parent cc4427e52b
commit 3d834e08c9
4 changed files with 7 additions and 4 deletions

View File

@ -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>>())

View File

@ -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,
}; };

View File

@ -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,
}; };

View File

@ -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;