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,
|
||||
);
|
||||
|
||||
let mut instructions: Vec<_> =
|
||||
ice.instructions.into_iter().rev().collect();
|
||||
let mut instructions = ice.instructions.into_iter();
|
||||
|
||||
loop {
|
||||
let Some(event) = executor::block_on(receiver.next()) else {
|
||||
|
|
@ -193,7 +192,7 @@ pub fn run(
|
|||
});
|
||||
}
|
||||
emulator::Event::Ready => {
|
||||
let Some(instruction) = instructions.pop() else {
|
||||
let Some(instruction) = instructions.next() else {
|
||||
break;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue