mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Remove excessive clone() on Copy, caught by clippy.
This commit is contained in:
parent
3a664a054a
commit
044128dc58
1 changed files with 1 additions and 1 deletions
|
|
@ -1006,7 +1006,7 @@ impl EdwardsBasepointTable {
|
||||||
// XXX can we skip the initialization without too much unsafety?
|
// XXX can we skip the initialization without too much unsafety?
|
||||||
// stick 30K on the stack and call it a day.
|
// stick 30K on the stack and call it a day.
|
||||||
let mut table = EdwardsBasepointTable([[AffineNielsPoint::identity(); 8]; 32]);
|
let mut table = EdwardsBasepointTable([[AffineNielsPoint::identity(); 8]; 32]);
|
||||||
let mut P = basepoint.clone();
|
let mut P = *basepoint;
|
||||||
for i in 0..32 {
|
for i in 0..32 {
|
||||||
// P = (16^2)^i * B
|
// P = (16^2)^i * B
|
||||||
let mut jP = P.to_affine_niels();
|
let mut jP = P.to_affine_niels();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue