[test, chore]: Fix clippy and genericize one more test (#180)

* genericize test_tiny_r1cs

* chore: remove redundant clone in scalar_mul

Makes clippy happy
This commit is contained in:
François Garillot
2023-06-09 12:53:23 -04:00
committed by GitHub
parent 7193483628
commit bef42262d6
2 changed files with 15 additions and 12 deletions

View File

@@ -439,8 +439,8 @@ where
// we assume the first bit to be 1, so we must initialize acc to self and double it
// we remove this assumption below
let mut acc = p.clone();
p = p.double_incomplete(cs.namespace(|| "double"))?;
let mut acc = p;
p = acc.double_incomplete(cs.namespace(|| "double"))?;
// perform the double-and-add loop to compute the scalar mul using incomplete addition law
for (i, bit) in incomplete_bits.iter().enumerate().skip(1) {