diff --git a/src/base/array_storage.rs b/src/base/array_storage.rs index 8aa1a7bf..1743f06b 100644 --- a/src/base/array_storage.rs +++ b/src/base/array_storage.rs @@ -57,7 +57,9 @@ where N: Default, { fn default() -> Self { - ArrayStorage { data: Default::default() } + ArrayStorage { + data: Default::default(), + } } } diff --git a/src/base/construction_slice.rs b/src/base/construction_slice.rs index d63b374b..06b8be9f 100644 --- a/src/base/construction_slice.rs +++ b/src/base/construction_slice.rs @@ -220,9 +220,9 @@ macro_rules! impl_constructors( // FIXME: this is not very pretty. We could find a better call syntax. impl_constructors!(R, C; // Arguments for Matrix - => R: DimName, => C: DimName; // Type parameters for impl - R::name(), C::name(); // Arguments for `_generic` constructors. - ); // Arguments for non-generic constructors. +=> R: DimName, => C: DimName; // Type parameters for impl +R::name(), C::name(); // Arguments for `_generic` constructors. +); // Arguments for non-generic constructors. impl_constructors!(R, Dynamic; => R: DimName; @@ -279,9 +279,9 @@ macro_rules! impl_constructors_mut( // FIXME: this is not very pretty. We could find a better call syntax. impl_constructors_mut!(R, C; // Arguments for Matrix - => R: DimName, => C: DimName; // Type parameters for impl - R::name(), C::name(); // Arguments for `_generic` constructors. - ); // Arguments for non-generic constructors. +=> R: DimName, => C: DimName; // Type parameters for impl +R::name(), C::name(); // Arguments for `_generic` constructors. +); // Arguments for non-generic constructors. impl_constructors_mut!(R, Dynamic; => R: DimName; diff --git a/src/geometry/quaternion.rs b/src/geometry/quaternion.rs index c4f1617a..0c996ede 100755 --- a/src/geometry/quaternion.rs +++ b/src/geometry/quaternion.rs @@ -36,7 +36,7 @@ pub struct Quaternion { impl Default for Quaternion { fn default() -> Self { Quaternion { - coords: Vector4::zeros() + coords: Vector4::zeros(), } } } diff --git a/src/linalg/cholesky.rs b/src/linalg/cholesky.rs index cf338a95..d9f33f27 100644 --- a/src/linalg/cholesky.rs +++ b/src/linalg/cholesky.rs @@ -25,7 +25,8 @@ use crate::storage::{Storage, StorageMut}; )] #[derive(Clone, Debug)] pub struct Cholesky -where DefaultAllocator: Allocator +where + DefaultAllocator: Allocator, { chol: MatrixN, } @@ -38,7 +39,8 @@ where } impl Cholesky -where DefaultAllocator: Allocator +where + DefaultAllocator: Allocator, { /// Computes the Cholesky decomposition of `matrix` without checking that the matrix is definite-positive. /// @@ -139,7 +141,8 @@ where DefaultAllocator: Allocator } impl Cholesky -where DefaultAllocator: Allocator +where + DefaultAllocator: Allocator, { /// Attempts to compute the Cholesky decomposition of `matrix`. /// @@ -362,7 +365,8 @@ where DefaultAllocator: Allocator } impl, S: Storage> SquareMatrix -where DefaultAllocator: Allocator +where + DefaultAllocator: Allocator, { /// Attempts to compute the Cholesky decomposition of this matrix. ///