Skip to content

Commit

Permalink
fix a test that wasn't adapted to a changed signature
Browse files Browse the repository at this point in the history
  • Loading branch information
p-avital committed May 3, 2024
1 parent e14810c commit aa7afbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/libloading/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ fn main() {
.map(|d| d.map(|f| f.unwrap().file_name()).collect::<Vec<_>>())
)
});
let stable_fn = lib.get_stabbied::<extern "C" fn(u8)>(b"stable_fn").unwrap();
let stable_fn = lib
.get_stabbied::<extern "C" fn(u8) -> stabby::option::Option<()>>(b"stable_fn")
.unwrap();
let unstable_fn = lib
.get_canaried::<extern "C" fn(&[u8])>(b"unstable_fn")
.unwrap();
Expand Down

0 comments on commit aa7afbe

Please sign in to comment.