Iterate instructions instead of collecting in iced_test::run
This commit is contained in:
parent
6a6a2ac8c5
commit
d8dbb7568a
1 changed files with 2 additions and 3 deletions
|
|
@ -174,8 +174,7 @@ pub fn run(
|
||||||
preset,
|
preset,
|
||||||
);
|
);
|
||||||
|
|
||||||
let mut instructions: Vec<_> =
|
let mut instructions = ice.instructions.into_iter();
|
||||||
ice.instructions.into_iter().rev().collect();
|
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let Some(event) = executor::block_on(receiver.next()) else {
|
let Some(event) = executor::block_on(receiver.next()) else {
|
||||||
|
|
@ -193,7 +192,7 @@ pub fn run(
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
emulator::Event::Ready => {
|
emulator::Event::Ready => {
|
||||||
let Some(instruction) = instructions.pop() else {
|
let Some(instruction) = instructions.next() else {
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue