summaryrefslogtreecommitdiff
path: root/src/core.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.rs')
-rw-r--r--src/core.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.rs b/src/core.rs
index e646b46..30d879a 100644
--- a/src/core.rs
+++ b/src/core.rs
@@ -58,7 +58,7 @@ impl Core {
let instr = match self.mem.read_word(self.pc) {
Ok(i) => i,
Err(e) => {
- return Err(e.to_exception_instr());
+ return Err(e.into_exception_instr());
}
};