Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid an unecessary clone in LookAheadMethods::children #1200

Merged

Conversation

soerenmeier
Copy link
Contributor

Depending on how the trait will be used in the future this might not be a good idear.
Another possibility would be to return impl Iterator<Item=&Self> this is already possible in nightly and was stablized two weeks ago rust-lang/rust#115822

Copy link
Member

@tyranron tyranron left a comment

Choose a reason for hiding this comment

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

@soerenmeier makes sense. Thank you!

@tyranron tyranron added enhancement Improvement of existing features or bugfix k::api Related to API (application interface) labels Nov 2, 2023
@tyranron tyranron added this to the 0.16.0 milestone Nov 2, 2023
@tyranron tyranron enabled auto-merge (squash) November 2, 2023 13:17
@tyranron tyranron added the semver::breaking Breaking change in terms of SemVer label Nov 2, 2023
@tyranron tyranron merged commit 8b530eb into graphql-rust:master Nov 2, 2023
167 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing features or bugfix k::api Related to API (application interface) semver::breaking Breaking change in terms of SemVer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants