mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Make a lifetime more explicit
This commit is contained in:
parent
30671b5725
commit
e86ef8d1ca
1 changed files with 2 additions and 1 deletions
|
@ -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)?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue