Skip to content

Commit

Permalink
Reformat after clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sellig6792 committed Jan 5, 2023
1 parent d853d11 commit 1eac0c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/ast/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ pub struct Parser {

impl Parser {
pub fn new(program: String) -> Parser {
let program = program
.replace([' ', '\t', '\r', '\n'], "");
let program = program.replace([' ', '\t', '\r', '\n'], "");

Parser { program }
}
Expand Down
5 changes: 1 addition & 4 deletions src/optimization/optimizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ impl Optimizer {
}
}

fn cancel_opposed_instructions(
&self,
optimized_instructions: &mut Vec<OptimizedInstruction>,
) {
fn cancel_opposed_instructions(&self, optimized_instructions: &mut Vec<OptimizedInstruction>) {
let mut new_optimized_instructions: Vec<OptimizedInstruction> = vec![];

for optimized_instruction in optimized_instructions.iter() {
Expand Down

0 comments on commit 1eac0c9

Please sign in to comment.