From 5106fcc95a69f11a17de58eddd19d33e056b4e5c Mon Sep 17 00:00:00 2001 From: Nicolas Kirchner Date: Wed, 2 Aug 2017 16:38:38 +0200 Subject: [PATCH] Replace `Vec::copy_from_slice` not implemented in rust 1.8 by another method --- bigint/src/biguint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }