Skip to content

Remove needless by_ref calls - #3410

Merged
emilio merged 1 commit into
rust-lang:mainfrom
jplatte:by-ref-cleanup
Sep 5, 2026
Merged

emilio merged 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
@emilio
emilio added this pull request to the merge queue Sep 5, 2026
Merged via the queue into rust-lang:main with commit e12371f Sep 5, 2026
51 checks passed
@jplatte
jplatte deleted the by-ref-cleanup branch September 5, 2026 14:58
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