From b3e9d955b0a60b55a9edeed93e00ce2772f5b467 Mon Sep 17 00:00:00 2001 From: Jiayi Zhao Date: Sun, 28 Apr 2019 08:11:06 -0400 Subject: from_args has been changed from option to result - attempt to fix progress bars --- src/config/keymap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config') diff --git a/src/config/keymap.rs b/src/config/keymap.rs index 9fb2e7d..4b4e64d 100644 --- a/src/config/keymap.rs +++ b/src/config/keymap.rs @@ -32,8 +32,8 @@ impl Flattenable for JoshutoRawKeymap { if let Some(maps) = self.mapcommand { for mapcommand in maps { match commands::from_args(mapcommand.command.as_str(), mapcommand.args.as_ref()) { - Some(command) => insert_keycommand(&mut keymaps, command, &mapcommand.keys[..]), - None => eprintln!("Unknown command: {}", mapcommand.command), + Ok(command) => insert_keycommand(&mut keymaps, command, &mapcommand.keys[..]), + Err(e) => eprintln!("{}", e), } } } -- cgit v1.2.3