We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e14810c commit aa7afbeCopy full SHA for aa7afbe
examples/libloading/src/main.rs
@@ -31,7 +31,9 @@ fn main() {
31
.map(|d| d.map(|f| f.unwrap().file_name()).collect::<Vec<_>>())
32
)
33
});
34
- let stable_fn = lib.get_stabbied::<extern "C" fn(u8)>(b"stable_fn").unwrap();
+ let stable_fn = lib
35
+ .get_stabbied::<extern "C" fn(u8) -> stabby::option::Option<()>>(b"stable_fn")
36
+ .unwrap();
37
let unstable_fn = lib
38
.get_canaried::<extern "C" fn(&[u8])>(b"unstable_fn")
39
.unwrap();
0 commit comments