From 513fb33e4af92d9e570c22f49c54a7f7084bc964 Mon Sep 17 00:00:00 2001 From: Eduard Bopp Date: Tue, 11 Feb 2014 20:34:28 +0100 Subject: [PATCH] Fix call to swap function due to upstream changes Rust moved this function from std::util (which has been dissolved now) to std::mem. --- src/structs/dmat.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index db452831..9db4edc3 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -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 Transpose for DMat { } } - 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.