From a5ff6f514bb533fa40686d8f002480ff7eaf24ba Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 30 Oct 2020 00:25:57 +0000 Subject: [PATCH] Fix deref breakage with nightly-2020-10-06 Fixes the following error: cannot multiply-assign `::Fr` by `&&::Fr` I think this is related to: https://github.com/rust-lang/rust/issues/77638 --- src/groth16/generator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/groth16/generator.rs b/src/groth16/generator.rs index f23265c..741c089 100644 --- a/src/groth16/generator.rs +++ b/src/groth16/generator.rs @@ -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);