mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
rm: fix "needless borrow" clippy warnings
This commit is contained in:
parent
d76da1dc95
commit
59f37d88d0
1 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ pub fn uu_app() -> Command {
|
||||||
Arg::new(OPT_PROMPT)
|
Arg::new(OPT_PROMPT)
|
||||||
.short('i')
|
.short('i')
|
||||||
.help("prompt before every removal")
|
.help("prompt before every removal")
|
||||||
.overrides_with_all(&[OPT_PROMPT_MORE, OPT_INTERACTIVE])
|
.overrides_with_all([OPT_PROMPT_MORE, OPT_INTERACTIVE])
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
@ -178,7 +178,7 @@ pub fn uu_app() -> Command {
|
||||||
.short('I')
|
.short('I')
|
||||||
.help("prompt once before removing more than three files, or when removing recursively. \
|
.help("prompt once before removing more than three files, or when removing recursively. \
|
||||||
Less intrusive than -i, while still giving some protection against most mistakes")
|
Less intrusive than -i, while still giving some protection against most mistakes")
|
||||||
.overrides_with_all(&[OPT_PROMPT, OPT_INTERACTIVE])
|
.overrides_with_all([OPT_PROMPT, OPT_INTERACTIVE])
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
@ -189,7 +189,7 @@ pub fn uu_app() -> Command {
|
||||||
prompts always",
|
prompts always",
|
||||||
)
|
)
|
||||||
.value_name("WHEN")
|
.value_name("WHEN")
|
||||||
.overrides_with_all(&[OPT_PROMPT, OPT_PROMPT_MORE]),
|
.overrides_with_all([OPT_PROMPT, OPT_PROMPT_MORE]),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_ONE_FILE_SYSTEM)
|
Arg::new(OPT_ONE_FILE_SYSTEM)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue