Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Mar 31, 2019
1 parent 86fa4be commit 18b9f82
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/base/edition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 6 additions & 3 deletions src/sparse/cs_matrix_solve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}

Expand Down
1 change: 0 additions & 1 deletion tests/geometry/isometry.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
1 change: 0 additions & 1 deletion tests/geometry/similarity.rs
Original file line number Diff line number Diff line change
@@ -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!(
Expand Down

0 comments on commit 18b9f82

Please sign in to comment.