Skip to content

clippy: warn on iter_on_single_items (manual)#14290

Closed
decofe wants to merge 1 commit intofoundry-rs:masterfrom
decofe:zerosnacks/lint-iter-on-single-items
Closed

clippy: warn on iter_on_single_items (manual)#14290
decofe wants to merge 1 commit intofoundry-rs:masterfrom
decofe:zerosnacks/lint-iter-on-single-items

Conversation

@decofe
Copy link
Copy Markdown
Contributor

@decofe decofe commented Apr 13, 2026

Enable clippy::iter_on_single_items and fix all findings.

Replaces [x].into_iter() and Some(x).into_iter() with std::iter::once(x) for clarity.

Prompted by: zerosnacks

Co-Authored-By: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
@zerosnacks zerosnacks changed the title clippy: warn on iter_on_single_items clippy: warn on iter_on_single_items (manual) Apr 13, 2026
@zerosnacks zerosnacks self-assigned this Apr 13, 2026
@zerosnacks zerosnacks closed this Apr 30, 2026
@github-project-automation github-project-automation Bot moved this to Done in Foundry Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants