Fixed borrow issues
This commit is contained in:
parent
f66f4c5d6c
commit
974fa25a3c
6 changed files with 34 additions and 39 deletions
|
|
@ -352,11 +352,11 @@ impl Intel4001 {
|
|||
self.input_latch
|
||||
}
|
||||
|
||||
pub fn get_io_mode(&self) -> IoMode {
|
||||
fn get_io_mode(&self) -> IoMode {
|
||||
self.io_mode
|
||||
}
|
||||
|
||||
pub fn set_io_mode(&mut self, mode: IoMode) {
|
||||
fn set_io_mode(&mut self, mode: IoMode) {
|
||||
self.io_mode = mode;
|
||||
match mode {
|
||||
IoMode::Input => self.tri_state_io_pins(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue