diff --git a/plonky2/src/gadgets/arithmetic.rs b/plonky2/src/gadgets/arithmetic.rs index 3fee2ecd..70cd24ad 100644 --- a/plonky2/src/gadgets/arithmetic.rs +++ b/plonky2/src/gadgets/arithmetic.rs @@ -364,11 +364,7 @@ impl SimpleGenerator for EqualityGenerator { let x = witness.get_target(self.x); let y = witness.get_target(self.y); - let inv = if x != y { - (x - y).inverse() - } else { - F::ZERO - }; + let inv = if x != y { (x - y).inverse() } else { F::ZERO }; out_buffer.set_bool_target(self.equal, x == y); out_buffer.set_target(self.inv, inv);