Skip to content

Commit d9ace45

Browse files
committed
Merge pull request #3 from aepsil0n/fix/swap
Fix call to swap function due to upstream changes.
2 parents 96e77e4 + 513fb33 commit d9ace45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/structs/dmat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::rand;
77
use std::num::{One, Zero};
88
use std::vec;
99
use traits::operations::ApproxEq;
10-
use std::util;
10+
use std::mem;
1111
use structs::dvec::{DVec, DVecMulRhs};
1212
use traits::operations::{Inv, Transpose, Mean, Cov};
1313
use traits::structure::Cast;
@@ -445,7 +445,7 @@ impl<N: Clone> Transpose for DMat<N> {
445445
}
446446
}
447447

448-
util::swap(&mut self.nrows, &mut self.ncols);
448+
mem::swap(&mut self.nrows, &mut self.ncols);
449449
}
450450
else {
451451
// FIXME: implement a better algorithm which does that in-place.

0 commit comments

Comments
 (0)