summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-04-17 15:25:51 +0200
committerBert Belder <bertbelder@gmail.com>2019-04-17 15:35:46 +0200
commit8477daa8b970ae8ef042a5242aee705003b63fc1 (patch)
tree61fb35d8b367749c35df82f399c176edc7773464 /cli/flags.rs
parent90c2b10f47ab123f0ea7d71f3eeb3ee9172f7000 (diff)
Fix clippy warnings
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs6
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))]