[refurb] Implement reimplemented-starmap rule (FURB140) (#7253)

## Summary

This PR is part of a bigger effort of re-implementing `refurb` rules
#1348. It adds support for
[FURB140](https://github.com/dosisod/refurb/blob/master/refurb/checks/itertools/use_starmap.py)

## Test Plan

I included a new test + checked that all other tests pass.
This commit is contained in:
Valeriy Savchenko 2023-09-19 03:18:54 +01:00 committed by GitHub
parent c6ba7dfbc6
commit 4123d074bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 562 additions and 16 deletions

View file

@ -854,12 +854,13 @@ mod tests {
const PREVIEW_RULES: &[Rule] = &[
Rule::DirectLoggerInstantiation,
Rule::InvalidGetLoggerArgument,
Rule::ManualDictComprehension,
Rule::ReimplementedStarmap,
Rule::SliceCopy,
Rule::TooManyPublicMethods,
Rule::TooManyPublicMethods,
Rule::UndocumentedWarn,
Rule::InvalidGetLoggerArgument,
];
#[allow(clippy::needless_pass_by_value)]