Browse Source

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

Nicolas Kirchner 7 years ago
parent
commit
5106fcc95a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bigint/src/biguint.rs

+ 1 - 1
bigint/src/biguint.rs

@@ -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();
     }