Skip to content

Commit

Permalink
fix compilation with newest wasm-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetig committed Sep 11, 2024
1 parent 816d99b commit f6405c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/c/src/component_type_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn object(

// Build a module with one function that's a "dummy function"
let mut types = TypeSection::new();
types.function([], []);
types.ty().function([], []);
module.section(&types);
let mut funcs = FunctionSection::new();
funcs.function(0);
Expand Down

0 comments on commit f6405c5

Please sign in to comment.