Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jan 9, 2024
1 parent 6444b72 commit 30fd4f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bberg/src/lookup_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::utils::sanitize_name;
/// Lookup
///
/// Contains the information required to produce a lookup relation
/// Lookup object and lookup side object are very similar in structure, however they are duplicated for
/// Lookup object and lookup side object are very similar in structure, however they are duplicated for
/// readability.
pub struct Lookup {
/// the name given to the inverse helper column
Expand All @@ -39,7 +39,6 @@ pub struct LookupSide {
cols: Vec<String>,
}


pub trait LookupBuilder {
/// Takes in an AST and works out what lookup relations are needed
/// Note: returns the name of the inverse columns, such that they can be added to the prover in subsequent steps
Expand Down Expand Up @@ -352,7 +351,9 @@ fn create_compute_inverse_exist(lhs_selector: &String, rhs_selector: &String) ->
}}")
}

fn get_lookup_side<F: FieldElement>(def: &SelectedExpressions<AlgebraicExpression<F>>) -> LookupSide {
fn get_lookup_side<F: FieldElement>(
def: &SelectedExpressions<AlgebraicExpression<F>>,
) -> LookupSide {
let get_name = |expr: &AlgebraicExpression<F>| match expr {
AlgebraicExpression::Reference(a_ref) => sanitize_name(&a_ref.name),
_ => panic!("Expected reference"),
Expand Down

0 comments on commit 30fd4f7

Please sign in to comment.