From 293c2f0720de3056f5d8584339f84a0ba437a731 Mon Sep 17 00:00:00 2001 From: harupy Date: Wed, 2 Aug 2023 16:45:46 +0900 Subject: [PATCH] nit --- crates/ruff/src/rules/pyupgrade/rules/f_strings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }