diff --git a/crates/ruff/src/rules/pyupgrade/rules/f_strings.rs b/crates/ruff/src/rules/pyupgrade/rules/f_strings.rs index b40a330373d827..2bcf8332005607 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(&mut self, index: usize) -> Option<&Expr> { - self.args.get(index).map(|x| *x) + self.args.get(index).map(|a| *a) } fn arg_keyword(&mut self, key: &str) -> Option<&Expr> { - self.kwargs.get(key).map(|x| *x) + self.kwargs.get(key).map(|a| *a) } }