More
This commit is contained in:
@@ -101,10 +101,10 @@ mod test_program {
|
||||
Instruction::Trivia(_) => false,
|
||||
_ => true,
|
||||
});
|
||||
let mut compiled = pre_compiled.instructions.iter().filter(|i| match i {
|
||||
Instruction::Trivia(_) => false,
|
||||
_ => true,
|
||||
});
|
||||
let mut compiled = pre_compiled
|
||||
.instructions
|
||||
.iter()
|
||||
.filter(|i| !matches!(i, Instruction::Trivia(_)));
|
||||
|
||||
let mut is_different = false;
|
||||
|
||||
@@ -133,7 +133,7 @@ mod test_program {
|
||||
}
|
||||
}
|
||||
|
||||
while let Some(compiled) = compiled.next() {
|
||||
for compiled in compiled {
|
||||
println!(
|
||||
"Extra instruction from compilation: {compiled} ({:?})",
|
||||
compiled.to_bytes()
|
||||
|
Reference in New Issue
Block a user