Update to the last rust.

Version of rustc: rustc 0.12.0-nightly (d64b4103d 2014-09-26 21:47:47 +0000).
This commit is contained in:
Sébastien Crozet 2014-09-27 09:54:03 +02:00
parent a9c7fe7420
commit 8f89ac421c
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ impl<N: Clone> DMat<N> {
DMat {
nrows: nrows,
ncols: ncols,
mij: Vec::from_slice(vec)
mij: vec.to_vec()
}
}
}

View File

@ -46,7 +46,7 @@ impl<N: Clone> DVec<N> {
assert!(dim <= vec.len());
DVec {
at: Vec::from_slice(vec.slice_to(dim))
at: vec.slice_to(dim).to_vec()
}
}
}