Skip to content

Remove needless by_ref calls - #3410

Open
jplatte wants to merge 1 commit into
rust-lang:mainfrom
jplatte:by-ref-cleanup
Open

Remove needless by_ref calls#3410
jplatte wants to merge 1 commit into
rust-lang:mainfrom
jplatte:by-ref-cleanup

Conversation

@jplatte

@jplatte jplatte commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3408. The by_ref calls in that file were already redundant before itertools was removed, because peeking_take_while doesn't consume the iterator either.

Also found one other place not related to the above PR where by_ref was called for no good reason.

@jplatte
jplatte marked this pull request as ready for review July 28, 2026 20:29
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.

1 participant