mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-15 00:05:02 +00:00
Use Loc::at instead of map(|_| x)
This commit is contained in:
parent
c0bb46517c
commit
25d3cae08f
1 changed files with 1 additions and 1 deletions
|
@ -1018,7 +1018,7 @@ fn import_params<'a>() -> impl Parser<'a, ModuleImportParams<'a>, EImportParams<
|
|||
|
||||
let params = record.fields.map_items_result(arena, |loc_field| {
|
||||
match loc_field.value.to_assigned_field(arena) {
|
||||
Ok(field) => Ok(loc_field.map(|_| field)),
|
||||
Ok(field) => Ok(Loc::at(loc_field.region, field)),
|
||||
Err(FoundApplyValue) => Err((
|
||||
MadeProgress,
|
||||
EImportParams::RecordApplyFound(loc_field.region),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue