Skip to content

Commit

Permalink
Fix NLL migration warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum authored and sebcrozet committed Sep 8, 2019
1 parent 9108c8e commit b015544
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base/cg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ impl<N: Scalar + Ring, D: DimName, S: StorageMut<N, D, D>> SquareMatrix<N, D, S>
{
for i in 0..D::dim() {
for j in 0..D::dim() - 1 {
self[(j, i)] += shift[j] * self[(D::dim() - 1, i)];
let add = shift[j] * self[(D::dim() - 1, i)];
self[(j, i)] += add;
}
}
}
Expand Down

0 comments on commit b015544

Please sign in to comment.