Skip to content

Commit aa7afbe

Browse files
committed
fix a test that wasn't adapted to a changed signature
1 parent e14810c commit aa7afbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/libloading/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ fn main() {
3131
.map(|d| d.map(|f| f.unwrap().file_name()).collect::<Vec<_>>())
3232
)
3333
});
34-
let stable_fn = lib.get_stabbied::<extern "C" fn(u8)>(b"stable_fn").unwrap();
34+
let stable_fn = lib
35+
.get_stabbied::<extern "C" fn(u8) -> stabby::option::Option<()>>(b"stable_fn")
36+
.unwrap();
3537
let unstable_fn = lib
3638
.get_canaried::<extern "C" fn(&[u8])>(b"unstable_fn")
3739
.unwrap();

0 commit comments

Comments
 (0)