Fix call to swap function due to upstream changes

Rust moved this function from std::util (which has been dissolved now) to std::mem.
This commit is contained in:
Eduard Bopp 2014-02-11 20:34:28 +01:00
parent 96e77e4cfd
commit 513fb33e4a
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ use std::rand;
use std::num::{One, Zero};
use std::vec;
use traits::operations::ApproxEq;
use std::util;
use std::mem;
use structs::dvec::{DVec, DVecMulRhs};
use traits::operations::{Inv, Transpose, Mean, Cov};
use traits::structure::Cast;
@ -445,7 +445,7 @@ impl<N: Clone> Transpose for DMat<N> {
}
}
util::swap(&mut self.nrows, &mut self.ncols);
mem::swap(&mut self.nrows, &mut self.ncols);
}
else {
// FIXME: implement a better algorithm which does that in-place.