From 15e1e6376bd685beaf6a6a1235d08bc33f96789b Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sat, 6 Mar 2021 14:31:22 -0600 Subject: [PATCH] remove warnings (#3137) --- Cargo.lock | 5 +++-- crates/nu-command/src/commands/str_/case/camel_case.rs | 2 +- crates/nu-command/src/commands/str_/case/kebab_case.rs | 2 +- crates/nu-command/src/commands/str_/case/pascal_case.rs | 2 +- .../src/commands/str_/case/screaming_snake_case.rs | 2 +- crates/nu-command/src/commands/str_/case/snake_case.rs | 2 +- crates/nu-command/src/commands/str_/trim/trim_both_ends.rs | 2 +- crates/nu-command/src/commands/str_/trim/trim_left.rs | 2 +- crates/nu-command/src/commands/str_/trim/trim_right.rs | 2 +- crates/nu-command/src/commands/table/command.rs | 2 +- crates/nu-engine/src/plugin/run_plugin.rs | 2 +- 11 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 98a20ee117..7e6f2c035f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2948,8 +2948,9 @@ dependencies = [ [[package]] name = "minus" -version = "3.2.0" -source = "git+https://github.com/arijit79/minus?branch=main#eadb315644dcc051a0a3a7d4739bd59dfb37f0bd" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaddc201fbde99703a9a33c1909b9cc5a8ff57dd6237e014fd04b03b30e8b3b8" dependencies = [ "async-std", "crossterm 0.19.0", diff --git a/crates/nu-command/src/commands/str_/case/camel_case.rs b/crates/nu-command/src/commands/str_/case/camel_case.rs index 3e4f95ca7b..34d21b1dea 100644 --- a/crates/nu-command/src/commands/str_/case/camel_case.rs +++ b/crates/nu-command/src/commands/str_/case/camel_case.rs @@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand { } async fn run(&self, args: CommandArgs) -> Result { - operate((args), &to_camel_case).await + operate(args, &to_camel_case).await } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/commands/str_/case/kebab_case.rs b/crates/nu-command/src/commands/str_/case/kebab_case.rs index 3d79777fc0..c4a7007796 100644 --- a/crates/nu-command/src/commands/str_/case/kebab_case.rs +++ b/crates/nu-command/src/commands/str_/case/kebab_case.rs @@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand { } async fn run(&self, args: CommandArgs) -> Result { - operate((args), &to_kebab_case).await + operate(args, &to_kebab_case).await } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/commands/str_/case/pascal_case.rs b/crates/nu-command/src/commands/str_/case/pascal_case.rs index 853e0c1128..fc3ee48fc1 100644 --- a/crates/nu-command/src/commands/str_/case/pascal_case.rs +++ b/crates/nu-command/src/commands/str_/case/pascal_case.rs @@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand { } async fn run(&self, args: CommandArgs) -> Result { - operate((args), &to_pascal_case).await + operate(args, &to_pascal_case).await } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/commands/str_/case/screaming_snake_case.rs b/crates/nu-command/src/commands/str_/case/screaming_snake_case.rs index 1d9e467fed..113ea96620 100644 --- a/crates/nu-command/src/commands/str_/case/screaming_snake_case.rs +++ b/crates/nu-command/src/commands/str_/case/screaming_snake_case.rs @@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand { } async fn run(&self, args: CommandArgs) -> Result { - operate((args), &to_screaming_snake_case).await + operate(args, &to_screaming_snake_case).await } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/commands/str_/case/snake_case.rs b/crates/nu-command/src/commands/str_/case/snake_case.rs index 5247123d72..56b06fec5d 100644 --- a/crates/nu-command/src/commands/str_/case/snake_case.rs +++ b/crates/nu-command/src/commands/str_/case/snake_case.rs @@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand { } async fn run(&self, args: CommandArgs) -> Result { - operate((args), &to_snake_case).await + operate(args, &to_snake_case).await } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/commands/str_/trim/trim_both_ends.rs b/crates/nu-command/src/commands/str_/trim/trim_both_ends.rs index df0957dab3..cc04326f4e 100644 --- a/crates/nu-command/src/commands/str_/trim/trim_both_ends.rs +++ b/crates/nu-command/src/commands/str_/trim/trim_both_ends.rs @@ -31,7 +31,7 @@ impl WholeStreamCommand for SubCommand { } async fn run(&self, args: CommandArgs) -> Result { - operate((args), &trim).await + operate(args, &trim).await } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/commands/str_/trim/trim_left.rs b/crates/nu-command/src/commands/str_/trim/trim_left.rs index 3526614a6e..83456e1205 100644 --- a/crates/nu-command/src/commands/str_/trim/trim_left.rs +++ b/crates/nu-command/src/commands/str_/trim/trim_left.rs @@ -31,7 +31,7 @@ impl WholeStreamCommand for SubCommand { } async fn run(&self, args: CommandArgs) -> Result { - operate((args), &trim_left).await + operate(args, &trim_left).await } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/commands/str_/trim/trim_right.rs b/crates/nu-command/src/commands/str_/trim/trim_right.rs index ba5bf5744b..d68650084f 100644 --- a/crates/nu-command/src/commands/str_/trim/trim_right.rs +++ b/crates/nu-command/src/commands/str_/trim/trim_right.rs @@ -31,7 +31,7 @@ impl WholeStreamCommand for SubCommand { } async fn run(&self, args: CommandArgs) -> Result { - operate((args), &trim_right).await + operate(args, &trim_right).await } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/commands/table/command.rs b/crates/nu-command/src/commands/table/command.rs index 0e80759794..b388357099 100644 --- a/crates/nu-command/src/commands/table/command.rs +++ b/crates/nu-command/src/commands/table/command.rs @@ -40,7 +40,7 @@ impl WholeStreamCommand for Command { } async fn run(&self, args: CommandArgs) -> Result { - table(TableConfiguration::new(), (args)).await + table(TableConfiguration::new(), args).await } } diff --git a/crates/nu-engine/src/plugin/run_plugin.rs b/crates/nu-engine/src/plugin/run_plugin.rs index 8b799daf4c..d31f8d5d20 100644 --- a/crates/nu-engine/src/plugin/run_plugin.rs +++ b/crates/nu-engine/src/plugin/run_plugin.rs @@ -109,7 +109,7 @@ impl WholeStreamCommand for PluginFilter { } async fn run(&self, args: CommandArgs) -> Result { - run_filter(self.path.clone(), (args)).await + run_filter(self.path.clone(), args).await } }