remove warnings (#3137)

This commit is contained in:
Darren Schroeder 2021-03-06 14:31:22 -06:00 committed by GitHub
parent 06d9d9ed08
commit 15e1e6376b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 13 additions and 12 deletions

5
Cargo.lock generated
View File

@ -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",

View File

@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
operate((args), &to_camel_case).await
operate(args, &to_camel_case).await
}
fn examples(&self) -> Vec<Example> {

View File

@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
operate((args), &to_kebab_case).await
operate(args, &to_kebab_case).await
}
fn examples(&self) -> Vec<Example> {

View File

@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
operate((args), &to_pascal_case).await
operate(args, &to_pascal_case).await
}
fn examples(&self) -> Vec<Example> {

View File

@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
operate((args), &to_screaming_snake_case).await
operate(args, &to_screaming_snake_case).await
}
fn examples(&self) -> Vec<Example> {

View File

@ -25,7 +25,7 @@ impl WholeStreamCommand for SubCommand {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
operate((args), &to_snake_case).await
operate(args, &to_snake_case).await
}
fn examples(&self) -> Vec<Example> {

View File

@ -31,7 +31,7 @@ impl WholeStreamCommand for SubCommand {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
operate((args), &trim).await
operate(args, &trim).await
}
fn examples(&self) -> Vec<Example> {

View File

@ -31,7 +31,7 @@ impl WholeStreamCommand for SubCommand {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
operate((args), &trim_left).await
operate(args, &trim_left).await
}
fn examples(&self) -> Vec<Example> {

View File

@ -31,7 +31,7 @@ impl WholeStreamCommand for SubCommand {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
operate((args), &trim_right).await
operate(args, &trim_right).await
}
fn examples(&self) -> Vec<Example> {

View File

@ -40,7 +40,7 @@ impl WholeStreamCommand for Command {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
table(TableConfiguration::new(), (args)).await
table(TableConfiguration::new(), args).await
}
}

View File

@ -109,7 +109,7 @@ impl WholeStreamCommand for PluginFilter {
}
async fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError> {
run_filter(self.path.clone(), (args)).await
run_filter(self.path.clone(), args).await
}
}