Skip to content

Commit

Permalink
Use copied
Browse files Browse the repository at this point in the history
  • Loading branch information
harupy committed Aug 2, 2023
1 parent ab90007 commit 6f4c075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff/src/rules/pyupgrade/rules/f_strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 6f4c075

Please sign in to comment.