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:
parent
a9c7fe7420
commit
8f89ac421c
|
@ -128,7 +128,7 @@ impl<N: Clone> DMat<N> {
|
|||
DMat {
|
||||
nrows: nrows,
|
||||
ncols: ncols,
|
||||
mij: Vec::from_slice(vec)
|
||||
mij: vec.to_vec()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue