graphql-rust / juniper

GraphQL server library for Rust
Other
5.72k stars 425 forks source link

Avoid an unecessary clone in `LookAheadMethods::children` #1200

Closed soerenmeier closed 1 year ago

soerenmeier commented 1 year ago

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 https://github.com/rust-lang/rust/pull/115822