From 92d1f9b615d37f03b9227714a92f5743df15a1fa Mon Sep 17 00:00:00 2001 From: Graeme Coupar Date: Wed, 27 Nov 2024 12:42:26 +0000 Subject: [PATCH] fix: expose TypeWrappersIter via `wrappers()` functions --- cynic-parser/src/executable/types.rs | 4 ++-- cynic-parser/src/type_system/types.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cynic-parser/src/executable/types.rs b/cynic-parser/src/executable/types.rs index bae38ccc..4f6b230f 100644 --- a/cynic-parser/src/executable/types.rs +++ b/cynic-parser/src/executable/types.rs @@ -1,5 +1,5 @@ use crate::{ - common::{TypeWrappers, WrappingType}, + common::{TypeWrappers, TypeWrappersIter, WrappingType}, AstLookup, Span, }; @@ -44,7 +44,7 @@ impl<'a> Type<'a> { } /// The wrapper types from the outermost to innermost - pub fn wrappers(&self) -> impl Iterator + 'a { + pub fn wrappers(&self) -> TypeWrappersIter { self.0.document.lookup(self.0.id).wrappers.iter() } diff --git a/cynic-parser/src/type_system/types.rs b/cynic-parser/src/type_system/types.rs index 0086ffd1..392ec202 100644 --- a/cynic-parser/src/type_system/types.rs +++ b/cynic-parser/src/type_system/types.rs @@ -1,5 +1,5 @@ use crate::{ - common::{TypeWrappers, WrappingType}, + common::{TypeWrappers, TypeWrappersIter, WrappingType}, type_system::ids::TypeId, AstLookup, Span, }; @@ -55,7 +55,7 @@ impl<'a> Type<'a> { } /// The wrapper types from the outermost to innermost - pub fn wrappers(&self) -> impl Iterator + 'a { + pub fn wrappers(&self) -> TypeWrappersIter { self.0.document.lookup(self.0.id).wrappers.iter() }