Skip to content

Commit

Permalink
Merge #874
Browse files Browse the repository at this point in the history
874: fix: Prevent zero-argument functions from being created in Rust r=Marwes a=Marwes

These cannot be called from the gluon side, instead a one argument
function that takes `()` should be used.

bors r+

Fixes #873

Co-authored-by: Markus Westerlind <marwes91@gmail.com>
  • Loading branch information
bors[bot] and Marwes authored Aug 19, 2020
2 parents be40059 + c278b17 commit 37c0b9a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion vm/src/api/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ impl<T, $($args,)* R> Function<T, fn($($args),*) -> R>
)
}

make_vm_function!();
make_vm_function!(A);
make_vm_function!(A, B);
make_vm_function!(A, B, C);
Expand Down

0 comments on commit 37c0b9a

Please sign in to comment.