From 4222c39990f1ed59048f1004d002165a8030122b Mon Sep 17 00:00:00 2001 From: Daniel Burgener Date: Thu, 31 Jul 2025 17:23:44 -0400 Subject: [PATCH] Address new mismatched_lifetime_syntaxes lint In rust 1.89, a lint is being added when lifetimes are referred to using different syntaxes across the args and return value. We have a few instances where lifetimes are elided in the args and hidden in the return. Elide in both cases to silence the lint. --- src/annotations.rs | 2 +- src/functions.rs | 2 +- src/internal_rep.rs | 2 +- src/machine.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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() } }