From 08d6e8da13f1ecb3e0fc987b8fd0c429b83bee24 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 28 Nov 2015 12:08:20 +0100 Subject: [PATCH] We need to unwrap here (and it is save) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c69f1bbc..8c764e59 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,7 +51,7 @@ fn main() { let cmdenv = CommandEnv { rt: &rt, bk: &backend, - matches: matches, + matches: matches.subcommand_matches(command).unwrap(), }; let result = match commands.get(command) {