Fix panic if debugger histfile does not exist

Former-commit-id: a355a783b4d513dd3c65ef41de6a7604853a7b0f
This commit is contained in:
Michel Heily 2019-08-11 01:09:22 +03:00
parent 9064ae9cf8
commit edf2efcce5

View file

@ -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 {