From 3d834e08c9d0f12e386d7eefe45120380d47adeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crozet=20S=C3=A9bastien?= Date: Sun, 11 Apr 2021 14:09:01 +0200 Subject: [PATCH] Run cargo fmt --- src/geometry/point_construction.rs | 2 +- src/geometry/quaternion_construction.rs | 2 +- src/geometry/rotation_specialization.rs | 2 +- src/geometry/unit_complex_construction.rs | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/geometry/point_construction.rs b/src/geometry/point_construction.rs index 3e7b2554..3f52d950 100644 --- a/src/geometry/point_construction.rs +++ b/src/geometry/point_construction.rs @@ -155,7 +155,7 @@ impl Distribution> for Standard where Standard: Distribution, { - /// 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] fn sample<'a, G: Rng + ?Sized>(&self, rng: &mut G) -> Point { Point::from(rng.gen::>()) diff --git a/src/geometry/quaternion_construction.rs b/src/geometry/quaternion_construction.rs index d3ce3763..a3b113d2 100644 --- a/src/geometry/quaternion_construction.rs +++ b/src/geometry/quaternion_construction.rs @@ -7,7 +7,7 @@ use quickcheck::{Arbitrary, Gen}; #[cfg(feature = "rand-no-std")] use rand::{ - distributions::{Distribution, OpenClosed01, Standard, Uniform, uniform::SampleUniform}, + distributions::{uniform::SampleUniform, Distribution, OpenClosed01, Standard, Uniform}, Rng, }; diff --git a/src/geometry/rotation_specialization.rs b/src/geometry/rotation_specialization.rs index 38d05897..bb71f4f8 100644 --- a/src/geometry/rotation_specialization.rs +++ b/src/geometry/rotation_specialization.rs @@ -7,7 +7,7 @@ use num::Zero; #[cfg(feature = "rand-no-std")] use rand::{ - distributions::{Distribution, OpenClosed01, Standard, Uniform, uniform::SampleUniform}, + distributions::{uniform::SampleUniform, Distribution, OpenClosed01, Standard, Uniform}, Rng, }; diff --git a/src/geometry/unit_complex_construction.rs b/src/geometry/unit_complex_construction.rs index c244883d..29ed7a01 100644 --- a/src/geometry/unit_complex_construction.rs +++ b/src/geometry/unit_complex_construction.rs @@ -2,7 +2,10 @@ use quickcheck::{Arbitrary, Gen}; #[cfg(feature = "rand-no-std")] -use rand::{distributions::{Distribution, Standard}, Rng}; +use rand::{ + distributions::{Distribution, Standard}, + Rng, +}; use num::One; use num_complex::Complex;