Fix some warnings

This commit is contained in:
2025-12-27 11:55:19 +01:00
parent 9f8e9ec380
commit 67406a9c48
4 changed files with 8 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ use crate::{
core::commands::CoreCmd,
decode::Instruction,
exceptions::ExceptionType,
gdb::{self, DebugCommand, StopReason},
gdb::{self, DebugCommand, DebugStream, StopReason},
instructions::find_and_exec,
mem::MemConfig,
};
@@ -39,7 +39,7 @@ impl Core {
loop {
if let Ok(cmd) = self.command_stream.try_recv() {
match cmd {
CoreCmd::EnterDbgMode(dbg_stream) => {
CoreCmd::EnterDbgMode(DebugStream(dbg_stream)) => {
let _ = self.debug_loop(dbg_stream);
}
};
@@ -57,7 +57,7 @@ impl Core {
if let Ok(cmd) = self.command_stream.recv() {
eprintln!("Recieved a command");
match cmd {
CoreCmd::EnterDbgMode(dbg_stream) => {
CoreCmd::EnterDbgMode(DebugStream(dbg_stream)) => {
let _ = self.debug_loop(dbg_stream);
}
};