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 af96f62 commit 883597c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apps/src/lib/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2052,7 +2052,12 @@ pub mod args {
)
.group(
ArgGroup::new("find_flags")
.args([HALT_ACTION.name, SUSPEND_ACTION.name])
.args(
#[allow(clippy::needless_borrow)]
{
&[HALT_ACTION.name, SUSPEND_ACTION.name]
},
)
.required(true),
)
}
Expand Down Expand Up @@ -3790,7 +3795,12 @@ pub mod args {
)
.group(
ArgGroup::new("find_flags")
.args([ALIAS_OPT.name, RAW_ADDRESS_OPT.name])
.args(
#[allow(clippy::needless_borrow)]
{
&[ALIAS_OPT.name, RAW_ADDRESS_OPT.name]
},
)
.required(true),
)
}
Expand Down

0 comments on commit 883597c

Please sign in to comment.