Add .snap.new files to gitignore

This commit is contained in:
2025-12-30 23:00:55 -07:00
parent 964ad92077
commit dbc4c72c3b
5 changed files with 5 additions and 145 deletions

View File

@@ -51,7 +51,7 @@ pub fn remove_redundant_jumps<'a>(
) -> (Vec<InstructionNode<'a>>, bool) {
let mut output = Vec::with_capacity(input.len());
let mut changed = false;
for (i, node) in input.iter().enumerate() {
// Check if this is a jump to the next line number
if let Instruction::Jump(Operand::Number(target)) = &node.instruction {
@@ -64,7 +64,7 @@ pub fn remove_redundant_jumps<'a>(
}
output.push(node.clone());
}
(output, changed)
}