cargo fmt

This commit is contained in:
Nicholas Ward 2021-07-01 10:36:31 -07:00
parent 8f33f8e2be
commit 702a098054
2 changed files with 11 additions and 3 deletions

View File

@ -146,7 +146,11 @@ impl<F: Field> SimpleGenerator<F> for EqualsZeroGenerator {
fn run_once(&self, witness: &PartialWitness<F>) -> PartialWitness<F> {
let to_test_value = witness.get_target(self.to_test);
let is_zero_value = if to_test_value == F::ZERO { F::ZERO } else { F::ONE };
let is_zero_value = if to_test_value == F::ZERO {
F::ZERO
} else {
F::ONE
};
let dummy_value = if to_test_value == F::ZERO {
F::ONE

View File

@ -7,11 +7,15 @@ use crate::wire::Wire;
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub enum Target {
Wire(Wire),
PublicInput { index: usize },
PublicInput {
index: usize,
},
/// A target that doesn't have any inherent location in the witness (but it can be copied to
/// another target that does). This is useful for representing intermediate values in witness
/// generation.
VirtualTarget { index: usize },
VirtualTarget {
index: usize,
},
}
impl Target {