Fix warnings.

This commit is contained in:
sebcrozet 2019-03-31 13:32:26 +02:00
parent 86fa4bee52
commit 18b9f82042
4 changed files with 7 additions and 6 deletions

View File

@ -58,7 +58,7 @@ impl<N: Scalar + Zero, R: Dim, C: Dim, S: Storage<N, R, C>> Matrix<N, R, C, S> {
for j in 0..ncols.value() {
// FIXME: use unchecked column indexing
let mut res = res.column_mut(j);
let mut src = self.column(j);
let src = self.column(j);
for (destination, source) in irows.clone().enumerate() {
unsafe {

View File

@ -78,7 +78,8 @@ impl<N: RealField, D: Dim, S: CsStorage<N, D, D>> CsMatrix<N, D, D, S> {
}
for (i, val) in column {
b[i] -= b[j] * val;
let bj = b[j];
b[i] -= bj * val;
}
}
}
@ -119,7 +120,8 @@ impl<N: RealField, D: Dim, S: CsStorage<N, D, D>> CsMatrix<N, D, D, S> {
if let Some(diag) = diag {
for (i, val) in column {
b[j] -= val * b[i];
let bi = b[i];
b[j] -= val * bi;
}
b[j] /= diag;
@ -178,7 +180,8 @@ impl<N: RealField, D: Dim, S: CsStorage<N, D, D>> CsMatrix<N, D, D, S> {
}
for (i, val) in column {
workspace[i] -= workspace[j] * val;
let wj = workspace[j];
workspace[i] -= wj * val;
}
}

View File

@ -1,7 +1,6 @@
#![cfg(feature = "arbitrary")]
#![allow(non_snake_case)]
use alga::linear::{ProjectiveTransformation, Transformation};
use na::{
Isometry2, Isometry3, Point2, Point3, Rotation2, Rotation3, Translation2, Translation3,
UnitComplex, UnitQuaternion, Vector2, Vector3,

View File

@ -1,7 +1,6 @@
#![cfg(feature = "arbitrary")]
#![allow(non_snake_case)]
use alga::linear::{ProjectiveTransformation, Transformation};
use na::{Isometry3, Point3, Similarity3, Translation3, UnitQuaternion, Vector3};
quickcheck!(