From 8f89ac421c391cb955812a476f64056b1947a174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 27 Sep 2014 09:54:03 +0200 Subject: [PATCH] Update to the last rust. Version of rustc: rustc 0.12.0-nightly (d64b4103d 2014-09-26 21:47:47 +0000). --- src/structs/dmat.rs | 2 +- src/structs/dvec.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index c93fb012..af49f97a 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -128,7 +128,7 @@ impl DMat { DMat { nrows: nrows, ncols: ncols, - mij: Vec::from_slice(vec) + mij: vec.to_vec() } } } diff --git a/src/structs/dvec.rs b/src/structs/dvec.rs index 500147a6..c300a3d6 100644 --- a/src/structs/dvec.rs +++ b/src/structs/dvec.rs @@ -46,7 +46,7 @@ impl DVec { assert!(dim <= vec.len()); DVec { - at: Vec::from_slice(vec.slice_to(dim)) + at: vec.slice_to(dim).to_vec() } } }