Skip to content

Commit

Permalink
fix: Prevent zero-argument functions from being created in Rust
Browse files Browse the repository at this point in the history
These cannot be called from the gluon side, instead a one argument
function that takes `()` should be used.

Fixes gluon-lang#873
  • Loading branch information
Marwes committed Aug 19, 2020
1 parent 1c8a1c0 commit c278b17
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 c278b17

Please sign in to comment.