Skip to content

Commit

Permalink
update func name
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Jan 12, 2025
1 parent 5d74cf8 commit 8355783
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ mod tests {
.collect::<Vec<_>>();

// call the increment function
let func = export_instance.func("increment").unwrap();
let func = export_instance.func("increment-count").unwrap();

const CAPACITY: usize = 1;
let mut results = [Value::Bool(false); CAPACITY];
Expand Down Expand Up @@ -772,7 +772,7 @@ mod tests {

let mut plugin = LayerPlugin::new(WASM, data);

let _ = plugin.call("increment", &[]).unwrap();
let _ = plugin.call("increment-count", &[]).unwrap();

// current
let result = plugin.call("current", &[]).unwrap();
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![warn(clippy::all)]
#![allow(static_mut_refs)] // dirs crate has warnings that break the CI build.
#![cfg_attr(test, recursion_limit = "512")]

// The build file results, builtin components, are included in the build script
// Build files are for the demos, so the wasm binaries can be included by default in the build
Expand Down

0 comments on commit 8355783

Please sign in to comment.