diff --git a/crates/ruff/src/rules/pyupgrade/rules/f_strings.rs b/crates/ruff/src/rules/pyupgrade/rules/f_strings.rs index cf9db5f7c2119..671fe2cbee150 100644 --- a/crates/ruff/src/rules/pyupgrade/rules/f_strings.rs +++ b/crates/ruff/src/rules/pyupgrade/rules/f_strings.rs @@ -110,11 +110,11 @@ impl<'a> FormatSummaryValues<'a> { } fn arg_positional(&self, index: usize) -> Option<&Expr> { - self.args.get(index).map(|a| *a) + self.args.get(index).copied() } fn arg_keyword(&self, key: &str) -> Option<&Expr> { - self.kwargs.get(key).map(|a| *a) + self.kwargs.get(key).copied() } }