Skip to content

Commit

Permalink
fix: expose TypeWrappersIter via wrappers() functions
Browse files Browse the repository at this point in the history
  • Loading branch information
obmarg committed Nov 27, 2024
1 parent 8136ed5 commit 92d1f9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cynic-parser/src/executable/types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
common::{TypeWrappers, WrappingType},
common::{TypeWrappers, TypeWrappersIter, WrappingType},
AstLookup, Span,
};

Expand Down Expand Up @@ -44,7 +44,7 @@ impl<'a> Type<'a> {
}

/// The wrapper types from the outermost to innermost
pub fn wrappers(&self) -> impl Iterator<Item = WrappingType> + 'a {
pub fn wrappers(&self) -> TypeWrappersIter {
self.0.document.lookup(self.0.id).wrappers.iter()
}

Expand Down
4 changes: 2 additions & 2 deletions cynic-parser/src/type_system/types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
common::{TypeWrappers, WrappingType},
common::{TypeWrappers, TypeWrappersIter, WrappingType},
type_system::ids::TypeId,
AstLookup, Span,
};
Expand Down Expand Up @@ -55,7 +55,7 @@ impl<'a> Type<'a> {
}

/// The wrapper types from the outermost to innermost
pub fn wrappers(&self) -> impl Iterator<Item = WrappingType> + 'a {
pub fn wrappers(&self) -> TypeWrappersIter {
self.0.document.lookup(self.0.id).wrappers.iter()
}

Expand Down

0 comments on commit 92d1f9b

Please sign in to comment.