diff --git a/src/annotations.rs b/src/annotations.rs index b51da4a..86f2984 100644 --- a/src/annotations.rs +++ b/src/annotations.rs @@ -275,7 +275,7 @@ impl AnnotationInfo { } pub trait Annotated { - fn get_annotations(&self) -> std::collections::btree_set::Iter; + fn get_annotations(&self) -> std::collections::btree_set::Iter<'_, AnnotationInfo>; } fn get_associate( diff --git a/src/functions.rs b/src/functions.rs index 93067f7..71f3b37 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -2070,7 +2070,7 @@ impl<'a> FunctionInfo<'a> { } impl Annotated for &FunctionInfo<'_> { - fn get_annotations(&self) -> std::collections::btree_set::Iter { + fn get_annotations(&self) -> std::collections::btree_set::Iter<'_, AnnotationInfo> { self.annotations.iter() } } diff --git a/src/internal_rep.rs b/src/internal_rep.rs index 007aaba..a9b2b35 100644 --- a/src/internal_rep.rs +++ b/src/internal_rep.rs @@ -98,7 +98,7 @@ impl Ord for TypeInfo { } impl Annotated for &TypeInfo { - fn get_annotations(&self) -> std::collections::btree_set::Iter { + fn get_annotations(&self) -> std::collections::btree_set::Iter<'_, AnnotationInfo> { self.annotations.iter() } } diff --git a/src/machine.rs b/src/machine.rs index 87df824..0e0b93d 100644 --- a/src/machine.rs +++ b/src/machine.rs @@ -43,7 +43,7 @@ impl Declared for ValidatedModule<'_> { } impl Annotated for &ValidatedModule<'_> { - fn get_annotations(&self) -> std::collections::btree_set::Iter { + fn get_annotations(&self) -> std::collections::btree_set::Iter<'_, AnnotationInfo> { self.annotations.iter() } }