diff --git a/nalgebra-sparse/src/ops/serial/cs.rs b/nalgebra-sparse/src/ops/serial/cs.rs index 69b2fd7f..d203374a 100644 --- a/nalgebra-sparse/src/ops/serial/cs.rs +++ b/nalgebra-sparse/src/ops/serial/cs.rs @@ -74,7 +74,7 @@ pub fn spadd_cs_prealloc( a: Op<&CsMatrix>, ) -> Result<(), OperationError> where - T: Scalar + ClosedAdd + ClosedMul + Zero + One+PartialEq, + T: Scalar + ClosedAdd + ClosedMul + Zero + One + PartialEq, { match a { Op::NoOp(a) => { diff --git a/src/base/blas.rs b/src/base/blas.rs index 4f605e0f..11c2fb7d 100644 --- a/src/base/blas.rs +++ b/src/base/blas.rs @@ -967,7 +967,7 @@ where self.fill_fn(|| MaybeUninit::new(T::zero())); // Safety: there's no (uninitialized) values. - return unsafe{self.assume_init_mut()}; + return unsafe { self.assume_init_mut() }; } let (rsa, csa) = a.strides(); diff --git a/src/geometry/dual_quaternion_construction.rs b/src/geometry/dual_quaternion_construction.rs index 6396a2ae..d692d781 100644 --- a/src/geometry/dual_quaternion_construction.rs +++ b/src/geometry/dual_quaternion_construction.rs @@ -1,5 +1,5 @@ use crate::{ - DualQuaternion, Isometry3, Quaternion, SimdRealField, Translation3, UnitDualQuaternion, + DualQuaternion, Isometry3, Quaternion, SimdRealField, Translation3, UnitDualQuaternion, UnitQuaternion, }; use num::{One, Zero}; diff --git a/src/geometry/point.rs b/src/geometry/point.rs index 9e0d4d06..24dcf260 100644 --- a/src/geometry/point.rs +++ b/src/geometry/point.rs @@ -82,9 +82,11 @@ where DefaultAllocator: Allocator, OVector: fmt::Debug, { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.debug_struct("OPoint").field("coords",&self.coords).finish() - } + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.debug_struct("OPoint") + .field("coords", &self.coords) + .finish() + } } #[cfg(feature = "bytemuck")] diff --git a/src/geometry/quaternion_conversion.rs b/src/geometry/quaternion_conversion.rs index ead8311f..d12797d2 100644 --- a/src/geometry/quaternion_conversion.rs +++ b/src/geometry/quaternion_conversion.rs @@ -28,7 +28,7 @@ use crate::geometry::{ impl SubsetOf> for Quaternion where - T2 : SupersetOf, + T2: SupersetOf, { #[inline] fn to_superset(&self) -> Quaternion { @@ -49,8 +49,8 @@ where } impl SubsetOf> for UnitQuaternion -where - T2: SupersetOf, +where + T2: SupersetOf, { #[inline] fn to_superset(&self) -> UnitQuaternion { diff --git a/src/sparse/cs_matrix.rs b/src/sparse/cs_matrix.rs index 173b0fb9..f01db155 100644 --- a/src/sparse/cs_matrix.rs +++ b/src/sparse/cs_matrix.rs @@ -266,7 +266,7 @@ where // IMPORTANT TODO: this method is still UB, and we should decide how to // update the API to take it into account. - + unsafe { i.set_len(nvals); } diff --git a/src/sparse/cs_matrix_ops.rs b/src/sparse/cs_matrix_ops.rs index 84c63077..2170f5d2 100644 --- a/src/sparse/cs_matrix_ops.rs +++ b/src/sparse/cs_matrix_ops.rs @@ -242,8 +242,7 @@ where let mut res = CsMatrix::new_uninitialized_generic(nrows1, ncols2, self.len() + rhs.len()); let mut timestamps = OVector::zeros_generic(nrows1, Const::<1>); - let mut workspace = - Matrix::new_uninitialized_generic(nrows1, Const::<1>) ; + let mut workspace = Matrix::new_uninitialized_generic(nrows1, Const::<1>); let mut nz = 0; for j in 0..ncols2.value() {