move comparator

This commit is contained in:
collin 2020-07-07 19:17:23 -07:00
parent 654c623789
commit e98c344f76
5 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,8 @@
//! Conversion of integer declarations to constraints in Leo.
use crate::{errors::IntegerError, ComparatorGadget, EvaluateLtGadget};
use crate::{
comparator::{ComparatorGadget, EvaluateLtGadget},
errors::IntegerError,
};
use leo_types::{InputValue, IntegerType, Span};
use snarkos_errors::gadgets::SynthesisError;

View File

@ -1,8 +1,5 @@
//! Module containing methods to enforce constraints in an Leo program
pub(crate) mod comparator;
pub(crate) use comparator::*;
pub mod function;
pub use self::function::*;

View File

@ -1,6 +1,9 @@
//! A data type that represents a field value
use crate::{errors::FieldError, ComparatorGadget, EvaluateLtGadget};
use crate::{
comparator::{ComparatorGadget, EvaluateLtGadget},
errors::FieldError,
};
use leo_types::Span;
use snarkos_errors::gadgets::SynthesisError;

View File

@ -1,4 +1,6 @@
pub mod boolean;
pub(crate) mod comparator;
pub mod value;
pub use self::value::*;