Make a lifetime more explicit

This commit is contained in:
Richard Feldman 2022-05-09 16:13:42 -04:00
parent 30671b5725
commit e86ef8d1ca
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798

View file

@ -2644,12 +2644,13 @@ impl RecordFields {
field_types_start, field_types_start,
} }
} }
#[inline(always)] #[inline(always)]
pub fn unsorted_iterator<'a>( pub fn unsorted_iterator<'a>(
&'a self, &'a self,
subs: &'a Subs, subs: &'a Subs,
ext: Variable, ext: Variable,
) -> Result<impl Iterator<Item = (&Lowercase, RecordField<Variable>)> + 'a, RecordFieldsError> ) -> Result<impl Iterator<Item = (&'a Lowercase, RecordField<Variable>)> + 'a, RecordFieldsError>
{ {
let (it, _) = crate::types::gather_fields_unsorted_iter(subs, *self, ext)?; let (it, _) = crate::types::gather_fields_unsorted_iter(subs, *self, ext)?;