mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 11:45:00 +03:00
remove unnecessary clone
This commit is contained in:
parent
2938a31aee
commit
402abac841
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user