Skip to content

Commit

Permalink
Add a pub use at root of optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Sellig6792 committed Dec 27, 2022
1 parent 7646100 commit 7f6b976
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ast/patterns.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod set_to_zero;

use crate::ast::InstructionTrait;
use crate::optimization::optimized_instructions::OptimizedInstruction;
use crate::optimization::OptimizedInstruction;

pub mod pattern_structs {
pub use super::set_to_zero::SetToZero;
Expand Down
3 changes: 3 additions & 0 deletions src/optimization.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
pub mod optimized_instructions;
mod optimizer;
mod optimized_io;

pub use optimizer::Optimizer;

pub use optimized_instructions::OptimizedInstruction;
2 changes: 1 addition & 1 deletion src/optimization/optimizer.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::ast::{Instruction, InstructionTrait, InstructionType, PatternType};

use crate::optimization::optimized_instructions::OptimizedInstruction;
use crate::optimization::OptimizedInstruction;

pub struct Optimizer {
instructions: Vec<Instruction>,
Expand Down

0 comments on commit 7f6b976

Please sign in to comment.