diff --git a/bigint/src/biguint.rs b/bigint/src/biguint.rs index 61d88cb..c77328f 100644 --- a/bigint/src/biguint.rs +++ b/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(); }