Skip to content

fix(crawl): drop redundant .into_iter() for clippy 1.95#39

Merged
us merged 1 commit into
mainfrom
fix/clippy-useless-into-iter-1.95
May 10, 2026
Merged

fix(crawl): drop redundant .into_iter() for clippy 1.95#39
us merged 1 commit into
mainfrom
fix/clippy-useless-into-iter-1.95

Conversation

@us
Copy link
Copy Markdown
Owner

@us us commented May 10, 2026

Fixes red CI on main. stream::iter accepts any IntoIterator, so the explicit .into_iter() on batch triggers clippy::useless_conversion under Rust 1.95.0 (CI's toolchain). Local Rust 1.94.1 didn't flag it, which is how it slipped through #33's merge.

Trivial one-line fix; tests still green.

`stream::iter` accepts any `IntoIterator`, so the explicit `.into_iter()`
on `batch` triggers `clippy::useless_conversion` under Rust 1.95 (CI was
red on main after the #33 sitemap fix; local Rust 1.94 didn't flag it).
Copilot AI review requested due to automatic review settings May 10, 2026 14:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes CI failures on Rust 1.95 by removing a redundant .into_iter() call when building a stream from a Vec, addressing clippy::useless_conversion in the sitemap crawl BFS.

Changes:

  • Remove explicit .into_iter() when passing batch to futures::stream::iter, relying on IntoIterator inference instead.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@us us merged commit fb4032b into main May 10, 2026
5 checks passed
@us us deleted the fix/clippy-useless-into-iter-1.95 branch May 10, 2026 14:30
This was referenced May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants