Explorar o código

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

Nicolas Kirchner %!s(int64=7) %!d(string=hai) anos
pai
achega
5106fcc95a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
     }