Skip to content

Commit

Permalink
Disable clippy needless_borrow lint
Browse files Browse the repository at this point in the history
  • Loading branch information
karbyshev committed Jun 16, 2023
1 parent a621a2c commit 31a4953
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions apps/src/lib/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2022,9 +2022,12 @@ pub mod args {
.help("Suspend consensus at the given block height"),
)
.group(
ArgGroup::new("find_flags")
.args([HALT_ACTION.name, SUSPEND_ACTION.name])
.required(true),
#[allow(clippy::needless_borrow)]
{
ArgGroup::new("find_flags")
.args(&[HALT_ACTION.name, SUSPEND_ACTION.name])
.required(true)
},
)
}
}
Expand Down Expand Up @@ -3760,9 +3763,12 @@ pub mod args {
.help("The bech32m encoded address string."),
)
.group(
ArgGroup::new("find_flags")
.args([ALIAS_OPT.name, RAW_ADDRESS_OPT.name])
.required(true),
#[allow(clippy::needless_borrow)]
{
ArgGroup::new("find_flags")
.args(&[ALIAS_OPT.name, RAW_ADDRESS_OPT.name])
.required(true)
},
)
}
}
Expand Down

0 comments on commit 31a4953

Please sign in to comment.