From 911d248b86db04faaa91feb7b87c7ac3790834b8 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 14 Jan 2020 21:06:10 -0500 Subject: [PATCH] bls12_381: Remove unnecessary unit return values --- bls12_381/src/pairings.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/bls12_381/src/pairings.rs b/bls12_381/src/pairings.rs index d2e65d0d0..08e792053 100644 --- a/bls12_381/src/pairings.rs +++ b/bls12_381/src/pairings.rs @@ -311,15 +311,9 @@ impl From for G2Prepared { let coeffs = addition_step(&mut self.cur, &self.base); self.coeffs.push(coeffs); } - fn square_output(_: Self::Output) -> Self::Output { - () - } - fn conjugate(_: Self::Output) -> Self::Output { - () - } - fn one() -> Self::Output { - () - } + fn square_output(_: Self::Output) -> Self::Output {} + fn conjugate(_: Self::Output) -> Self::Output {} + fn one() -> Self::Output {} } let is_identity = q.is_identity();