mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-10 16:01:28 +01:00
fix fmt check
This commit is contained in:
committed by
Pratyush Mishra
parent
23c6bb4bd0
commit
20af44e3c9
@@ -836,7 +836,9 @@ impl<ConstraintF: PrimeField> CondSelectGadget<ConstraintF> for Boolean {
|
||||
match cond {
|
||||
Boolean::Constant(true) => Ok(true_value.clone()),
|
||||
Boolean::Constant(false) => Ok(false_value.clone()),
|
||||
cond @ Boolean::Not(_) => Self::conditionally_select(cs, &cond.not(), false_value, true_value),
|
||||
cond @ Boolean::Not(_) => {
|
||||
Self::conditionally_select(cs, &cond.not(), false_value, true_value)
|
||||
},
|
||||
cond @ Boolean::Is(_) => match (true_value, false_value) {
|
||||
(x, &Boolean::Constant(false)) => Boolean::and(cs.ns(|| "and"), cond, x).into(),
|
||||
(&Boolean::Constant(false), x) => Boolean::and(cs.ns(|| "and"), &cond.not(), x),
|
||||
|
||||
Reference in New Issue
Block a user