mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Smaller workaround for the fact that some function are not exported
This commit is contained in:
parent
f1d9f4a04e
commit
debd2b5839
6 changed files with 19 additions and 43 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue