Skip to content

Commit 2c285a9

Browse files
authored
fix ret-areas.wit test for Java guest generator (#477)
Signed-off-by: Joel Dice <[email protected]>
1 parent 6faac6e commit 2c285a9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/gen-guest-teavm-java/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,10 @@ impl InterfaceGenerator<'_> {
384384
let mut bindgen = FunctionBindgen::new(
385385
self,
386386
&func.name,
387-
func.params.iter().map(|(name, _)| name.clone()).collect(),
387+
func.params
388+
.iter()
389+
.map(|(name, _)| name.to_lower_camel_case())
390+
.collect(),
388391
);
389392

390393
bindgen.gen.resolve.call(

crates/gen-guest-teavm-java/tests/codegen.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ use std::path::Path;
44
use std::process::Command;
55

66
macro_rules! codegen_test {
7-
// TODO: should remove this line and fix this test
8-
(ret_areas $($_:tt)*) => {};
9-
107
($id:ident $name:tt $test:tt) => {
118
#[test]
129
fn $id() {

0 commit comments

Comments
 (0)