diff options
author | Andy Hayden <andyhayden1@gmail.com> | 2019-10-03 06:16:06 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-10-03 09:16:06 -0400 |
commit | f7bbd71e219e61dd13bf4533d249150d39f4338e (patch) | |
tree | f7536dbc71f9ce7532177aea0adcb2fa65ba6d79 /cli/flags.rs | |
parent | e6e79771998f2488fe9559f1f92344501a10f8f6 (diff) |
Update rust to 1.38.0 (#3030)
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index c816830b6..c8e5c6e31 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -682,8 +682,8 @@ fn parse_script_args( let matches = cli_app.get_matches_from_safe(vec!["deno".to_string(), arg.to_string()]); - if matches.is_ok() { - flags = parse_flags(&matches.unwrap(), Some(flags)); + if let Ok(m) = matches { + flags = parse_flags(&m, Some(flags)); } else { argv.push(arg.to_string()); } |