Skip to content

Commit e9cac4c

Browse files
Update executor.rs (#558)
1 parent 30811bd commit e9cac4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/emulator/executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ impl Emulator for LinearEmulator {
11831183

11841184
let mut rom_count = 0;
11851185
let rom_iter = match self.static_rom_image_index {
1186-
None => std::iter::empty().collect::<Vec<_>>().into_iter(),
1186+
None => Vec::new().into_iter(),
11871187
Some((store, idx)) => match Modes::from_usize(store) {
11881188
Some(Modes::RW) => {
11891189
let mem_ro: FixedMemory<RO> = self.memory.frw_store[idx].clone().into();
@@ -1221,7 +1221,7 @@ impl Emulator for LinearEmulator {
12211221
.collect::<Vec<_>>()
12221222
.into_iter()
12231223
}
1224-
_ => std::iter::empty().collect::<Vec<_>>().into_iter(),
1224+
_ => Vec::new().into_iter(),
12251225
},
12261226
};
12271227
let ram_initialization = &self.initial_static_ram_image;

0 commit comments

Comments
 (0)