mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-12 00:41:32 +01:00
Simplify a few "if" structures
This commit is contained in:
committed by
Pratyush Mishra
parent
53a51eb4dc
commit
b42d5f8d36
@@ -275,7 +275,7 @@ impl<F: PrimeField> FieldGadget<F, F> for FpGadget<F> {
|
||||
|
||||
impl<F: PrimeField> PartialEq for FpGadget<F> {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
!self.value.is_none() && !other.value.is_none() && self.value == other.value
|
||||
self.value.is_some() && other.value.is_some() && self.value == other.value
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user