Replace `Vec::copy_from_slice` not implemented in rust 1.8 by another method
This commit is contained in:
parent
9b56d6667c
commit
5106fcc95a
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue