Explorar el Código

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

Nicolas Kirchner hace 7 años
padre
commit
5106fcc95a
Se han modificado 1 ficheros con 1 adiciones y 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();
     }