More
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/push/all-checks-complete Pipeline was successful
ci/woodpecker/pr/all-checks-complete unknown status

This commit is contained in:
Smaug123
2025-09-09 07:40:48 +01:00
parent 8b4e43dd5c
commit 0a2585eab0

View File

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