cargo fmt
This commit is contained in:
parent
b74be8499f
commit
a753d84aae
|
@ -74,7 +74,7 @@ pub fn spadd_cs_prealloc<T>(
|
|||
a: Op<&CsMatrix<T>>,
|
||||
) -> Result<(), OperationError>
|
||||
where
|
||||
T: Scalar + ClosedAdd + ClosedMul + Zero + One+PartialEq,
|
||||
T: Scalar + ClosedAdd + ClosedMul + Zero + One + PartialEq,
|
||||
{
|
||||
match a {
|
||||
Op::NoOp(a) => {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -83,7 +83,9 @@ where
|
|||
OVector<T, D>: fmt::Debug,
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("OPoint").field("coords",&self.coords).finish()
|
||||
f.debug_struct("OPoint")
|
||||
.field("coords", &self.coords)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ use crate::geometry::{
|
|||
|
||||
impl<T1, T2> SubsetOf<Quaternion<T2>> for Quaternion<T1>
|
||||
where
|
||||
T2 : SupersetOf<T1>,
|
||||
T2: SupersetOf<T1>,
|
||||
{
|
||||
#[inline]
|
||||
fn to_superset(&self) -> Quaternion<T2> {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue