You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: `extern` block uses type `(u32, u32)`, which is not FFI-safe
--> packages/std/src/imports.rs:43:37
|
43 | fn db_next(iterator_id: u32) -> (u32, u32);
| ^^^^^^^^^^ not FFI-safe
|
= note: `#[warn(improper_ctypes)]` on by default
= help: consider using a struct instead
= note: tuples have unspecified layout
Activity
fitzgen commentedon Jan 19, 2018
Discussion is also happening over at rustwasm/team#29
alexcrichton commentedon Dec 16, 2019
This is now unlikely to change at this point, so I'm going to close this. We've chosen
"C"for compatibility with mixing C/Rust in the same module.webmaster128 commentedon Oct 27, 2020
Does this imply that a Wasm import cannot use multiple return values? Or is this a to-be-silenced linter issue?
What I try to do is
which gets formatted to
which clippy complains about: