@@ -441,14 +441,12 @@ impl<'a, S> LookAheadChildren<'a, S> {
441
441
}
442
442
443
443
/// Returns the possibly aliased names of the top-level children from the current [selection].
444
- pub fn names ( & self ) -> impl Iterator < Item = & ' a str > + DoubleEndedIterator + ' _ {
444
+ pub fn names ( & self ) -> impl DoubleEndedIterator < Item = & ' a str > + ' _ {
445
445
self . children . iter ( ) . map ( |sel| sel. field_name ( ) )
446
446
}
447
447
448
448
/// Returns an [`Iterator`] over these children, by reference.
449
- pub fn iter (
450
- & self ,
451
- ) -> impl Iterator < Item = & LookAheadSelection < ' a , S > > + DoubleEndedIterator + ' _ {
449
+ pub fn iter ( & self ) -> impl DoubleEndedIterator < Item = & LookAheadSelection < ' a , S > > + ' _ {
452
450
self . children . iter ( )
453
451
}
454
452
}
@@ -481,7 +479,7 @@ impl<'a, S> Clone for SelectionSource<'a, S> {
481
479
// Implemented manually to omit redundant `S: Copy` trait bound, imposed by `#[derive(Copy)]`.
482
480
impl < ' a , S > Copy for SelectionSource < ' a , S > { }
483
481
484
- /// [Selection] of an an executed GraphQL query, used in [look-ahead][0] operations.
482
+ /// [Selection] of an executed GraphQL query, used in [look-ahead][0] operations.
485
483
///
486
484
/// [0]: https://en.wikipedia.org/wiki/Look-ahead_(backtracking)
487
485
/// [2]: https://en.wikipedia.org/wiki/Lazy_evaluation
@@ -574,9 +572,7 @@ impl<'a, S> LookAheadSelection<'a, S> {
574
572
///
575
573
/// [arguments]: https://spec.graphql.org/October2021#sec-Language.Arguments
576
574
/// [selection]: https://spec.graphql.org/October2021#sec-Selection-Sets
577
- pub fn arguments (
578
- & self ,
579
- ) -> impl Iterator < Item = LookAheadArgument < ' a , S > > + DoubleEndedIterator {
575
+ pub fn arguments ( & self ) -> impl DoubleEndedIterator < Item = LookAheadArgument < ' a , S > > {
580
576
let opt_arguments = match self . source {
581
577
SelectionSource :: Field ( f) => f. arguments . as_ref ( ) ,
582
578
_ => None ,
0 commit comments