From 3eede813db9259e57cfee6cb254f312d73aa04c0 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 2 Jun 2025 16:22:40 +0200 Subject: [PATCH] rm: remove some unnecessary type information --- src/uu/rm/src/rm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/rm/src/rm.rs b/src/uu/rm/src/rm.rs index 3364007b1..3f48e311b 100644 --- a/src/uu/rm/src/rm.rs +++ b/src/uu/rm/src/rm.rs @@ -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::(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()