mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-02-19 21:33:08 +00:00
cargo fmt
This commit is contained in:
parent
8f33f8e2be
commit
702a098054
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user