Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
chore!: Make GeneralOptimizer crate visible (#220)
Browse files Browse the repository at this point in the history
* make GeneralOptimizer crate visible

* fix clippy
  • Loading branch information
kevaundray authored Apr 20, 2023
1 parent 7abe6e5 commit 64bb346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions acvm/src/compiler/optimizers/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use acir::{
};
use indexmap::IndexMap;

pub struct GeneralOpt;
pub(crate) struct GeneralOpt;
impl GeneralOpt {
pub fn optimize(gate: Expression) -> Expression {
pub(crate) fn optimize(gate: Expression) -> Expression {
// XXX: Perhaps this optimization can be done on the fly
let gate = remove_zero_coefficients(gate);
simplify_mul_terms(gate)
Expand Down
2 changes: 1 addition & 1 deletion acvm/src/compiler/optimizers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod general;
mod redundant_range;

pub use general::GeneralOpt as GeneralOptimizer;
pub(crate) use general::GeneralOpt as GeneralOptimizer;
pub(crate) use redundant_range::RangeOptimizer;

0 comments on commit 64bb346

Please sign in to comment.