1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

rm: remove some unnecessary type information

This commit is contained in:
Daniel Hofstetter 2025-06-02 16:22:40 +02:00
parent 25c7ed5b1e
commit 3eede813db

View file

@ -112,7 +112,7 @@ static ARG_FILES: &str = "files";
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let matches = uu_app().try_get_matches_from(args)?;
let files: Vec<&OsStr> = matches
let files: Vec<_> = matches
.get_many::<OsString>(ARG_FILES)
.map(|v| v.map(OsString::as_os_str).collect())
.unwrap_or_default();
@ -126,7 +126,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
}
// If -f(--force) is before any -i (or variants) we want prompts else no prompts
let force_prompt_never: bool = force_flag && {
let force_prompt_never = force_flag && {
let force_index = matches.index_of(OPT_FORCE).unwrap_or(0);
![OPT_PROMPT, OPT_PROMPT_MORE, OPT_INTERACTIVE]
.iter()