Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Sep 20, 2023
1 parent f69a51e commit ab36c49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions halo2_proofs/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2073,7 +2073,7 @@ impl<F: Field> ConstraintSystem<F> {

// Substitute selectors for the real fixed columns in all gates
for expr in self.gates.iter_mut().flat_map(|gate| gate.polys.iter_mut()) {
replace_selectors(expr, &selector_replacements, false);
replace_selectors(expr, selector_replacements, false);
}

// Substitute non-simple selectors for the real fixed columns in all
Expand All @@ -2084,7 +2084,7 @@ impl<F: Field> ConstraintSystem<F> {
.iter_mut()
.chain(lookup.table_expressions.iter_mut())
}) {
replace_selectors(expr, &selector_replacements, true);
replace_selectors(expr, selector_replacements, true);
}

for expr in self.shuffles.iter_mut().flat_map(|shuffle| {
Expand All @@ -2093,7 +2093,7 @@ impl<F: Field> ConstraintSystem<F> {
.iter_mut()
.chain(shuffle.shuffle_expressions.iter_mut())
}) {
replace_selectors(expr, &selector_replacements, true);
replace_selectors(expr, selector_replacements, true);
}
}

Expand Down
6 changes: 0 additions & 6 deletions halo2_proofs/src/plonk/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ where
)?;

let mut fixed = batch_invert_assigned(assembly.fixed);
let max_degree = if compress_selectors { cs.degree() } else { 0 };
let (cs, selector_polys) = if compress_selectors {
cs.compress_selectors(assembly.selectors.clone())
} else {
Expand Down Expand Up @@ -333,11 +332,6 @@ where
)?;

let mut fixed = batch_invert_assigned(assembly.fixed);
let max_degree = if vk.compress_selectors {
cs.degree()
} else {
0
};
let (cs, selector_polys) = if vk.compress_selectors {
cs.compress_selectors(assembly.selectors)
} else {
Expand Down

0 comments on commit ab36c49

Please sign in to comment.