Smaller workaround for the fact that some function are not exported

This commit is contained in:
Olivier Goffart 2020-07-23 17:11:00 +02:00
parent f1d9f4a04e
commit debd2b5839
6 changed files with 19 additions and 43 deletions

View file

@ -190,14 +190,3 @@ pub unsafe extern "C" fn sixtyfps_shared_array_drop(out: *mut SharedArray<u8>) {
// ?? This won't call drop on the right type...
core::ptr::read(out);
}
/// Somehow this is required for the extern "C" things to be exported in a dependent dynlib
#[doc(hidden)]
pub fn dummy() {
#[derive(Clone)]
struct Foo;
foo(Foo);
fn foo(f: impl Clone) {
let _ = f.clone();
}
}