Skip to content

Commit

Permalink
fix clippy warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-str committed Sep 19, 2024
1 parent 23dd402 commit bdee3a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/engine/src/value/conversions/try_from_js/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ where
);
Ok(())
};
for_each_elem_in_js_map(js_map, f, context)?;
for_each_elem_in_js_map(&js_map, f, context)?;
return Ok(map);
}

Expand Down Expand Up @@ -75,7 +75,7 @@ where
);
Ok(())
};
for_each_elem_in_js_map(js_map, f, context)?;
for_each_elem_in_js_map(&js_map, f, context)?;
return Ok(map);
}

Expand All @@ -96,7 +96,7 @@ where
}
}

fn for_each_elem_in_js_map<F>(js_map: JsMap, mut f: F, context: &mut Context) -> JsResult<()>
fn for_each_elem_in_js_map<F>(js_map: &JsMap, mut f: F, context: &mut Context) -> JsResult<()>
where
F: FnMut(JsValue, JsValue, &mut Context) -> JsResult<()>,
{
Expand Down

0 comments on commit bdee3a0

Please sign in to comment.