Replace `Vec::copy_from_slice` not implemented in rust 1.8 by another method

This commit is contained in:
Nicolas Kirchner 2017-08-02 16:38:38 +02:00
parent 9b56d6667c
commit 5106fcc95a
1 changed files with 1 additions and 1 deletions

View File

@ -1192,7 +1192,7 @@ impl BigUint {
#[inline]
pub fn assign_from_slice(&mut self, slice: &[BigDigit]) {
self.data.resize(slice.len(), 0);
self.data.copy_from_slice(slice);
self.data.clone_from_slice(slice);
self.normalize();
}