rust-lang / rust-lang/rust-clippy
scan => unfold
Open
Nobody has claimed this yet.
A-lint
T-AST
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
If Clippy finds:
.scan(..., |z, _| { ... })
It could suggest:
unfold(..., |z| { ... })
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names the scan pattern and the unfold alternative but gives no file or test location. Start by searching Clippy's lint implementations and tests for scan; determine where this suggestion belongs and how similar suggestions are tested. Done means the applicable pattern is detected and the suggested unfold form is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100