From edf2efcce5922266ec0882672533bcb82f68f59a Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Sun, 11 Aug 2019 01:09:22 +0300 Subject: [PATCH] Fix panic if debugger histfile does not exist Former-commit-id: a355a783b4d513dd3c65ef41de6a7604853a7b0f --- src/debugger/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debugger/mod.rs b/src/debugger/mod.rs index 5068e7d..568298d 100644 --- a/src/debugger/mod.rs +++ b/src/debugger/mod.rs @@ -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 {