Fix deref breakage with nightly-2020-10-06

Fixes the following error:
  cannot multiply-assign `<E as Engine>::Fr` by `&&<E as Engine>::Fr`

I think this is related to:
  https://github.com/rust-lang/rust/issues/77638
This commit is contained in:
Jack Grigg 2020-10-30 00:25:57 +00:00
parent 0f2244fdb4
commit a5ff6f514b
1 changed files with 2 additions and 2 deletions

View File

@ -398,8 +398,8 @@ where
*b_g2 = g2_wnaf.scalar(&bt);
}
at.mul_assign(&beta);
bt.mul_assign(&alpha);
at *= beta;
bt *= alpha;
let mut e = at;
e.add_assign(&bt);