Skip to content

Commit

Permalink
Fix reference / non-reference mismatches for functions with multiple …
Browse files Browse the repository at this point in the history
…closures that are not scope-call
  • Loading branch information
sdroege authored and bilelmoussaoui committed Nov 13, 2024
1 parent 1307f50 commit a491943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codegen/function_body_chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl Builder {
"Box_<({})>",
calls
.iter()
.map(|c| format!("&{}", c.bound_name))
.map(|c| c.bound_name.to_string())
.collect::<Vec<_>>()
.join(", ")
);
Expand Down Expand Up @@ -516,7 +516,7 @@ impl Builder {
)));
} else {
body.push(Chunk::Custom(format!(
"let callback = callback{}",
"let callback = &callback{};",
if let Some(pos) = pos {
format!(".{pos}")
} else {
Expand Down

0 comments on commit a491943

Please sign in to comment.