Fix panic if debugger histfile does not exist
Former-commit-id: a355a783b4d513dd3c65ef41de6a7604853a7b0f
This commit is contained in:
parent
9064ae9cf8
commit
edf2efcce5
|
@ -168,7 +168,7 @@ impl Debugger {
|
|||
println!("Welcome to rustboyadvance-NG debugger 😎!\n");
|
||||
self.running = true;
|
||||
let mut rl = Editor::<()>::new();
|
||||
rl.load_history(".rustboyadvance_history").unwrap();
|
||||
let _ = rl.load_history(".rustboyadvance_history");
|
||||
while self.running {
|
||||
let readline = rl.readline(&format!("({}) ᐅ ", "rustboyadvance-dbg".bold().cyan()));
|
||||
match readline {
|
||||
|
|
Reference in a new issue