remove unnecessary clone

This commit is contained in:
collin 2020-07-16 20:35:41 -07:00
parent 2938a31aee
commit 402abac841

View File

@ -58,7 +58,7 @@ macro_rules! mul_int_impl {
// Compute double and add algorithm // Compute double and add algorithm
for (i, b_bit) in b.iter().enumerate() { for (i, b_bit) in b.iter().enumerate() {
// double // double
let mut a_shifted = vec![false_bit.clone(); i]; let mut a_shifted = vec![false_bit; i];
a_shifted.append(&mut a.clone()); a_shifted.append(&mut a.clone());
a_shifted.truncate(size); a_shifted.truncate(size);