diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-04-17 15:25:51 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-04-17 15:35:46 +0200 |
commit | 8477daa8b970ae8ef042a5242aee705003b63fc1 (patch) | |
tree | 61fb35d8b367749c35df82f399c176edc7773464 /cli/flags.rs | |
parent | 90c2b10f47ab123f0ea7d71f3eeb3ee9172f7000 (diff) |
Fix clippy warnings
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 3fd3f91fb..3aac1ecc8 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -96,7 +96,7 @@ static ENV_VARIABLES_HELP: &str = "ENVIRONMENT VARIABLES: NO_COLOR Set to disable color"; fn create_cli_app<'a, 'b>() -> App<'a, 'b> { - let cli_app = App::new("deno") + App::new("deno") .bin_name("deno") .global_settings(&[AppSettings::ColorNever]) .settings(&[ @@ -194,9 +194,7 @@ fn create_cli_app<'a, 'b>() -> App<'a, 'b> { // AppSettings:AllowExternalSubcommand to treat it as an // entry point script SubCommand::with_name("<script>").about("Script to run"), - ); - - cli_app + ) } #[cfg_attr(feature = "cargo-clippy", allow(stutter))] |