Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compatibility with compilers older than 1.72
Old compilers didn't used to consider `()` acceptable for FFI. error: `extern` block uses type `()`, which is not FFI-safe --> demo/src/main.rs:20:14 | 20 | type BlobstoreClient; | ______________^ 21 | | 22 | | fn new_blobstore_client() -> UniquePtr<BlobstoreClient>; 23 | | fn put(&self, parts: &mut MultiBuf) -> u64; | |________________^ not FFI-safe | = help: consider using a struct instead = note: tuples have unspecified layout note: the lint level is defined here --> demo/src/main.rs:1:1 | 1 | #[cxx::bridge(namespace = "org::blobstore")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the attribute macro `cxx::bridge` (in Nightly builds, run with -Z macro-backtrace for more info)
- Loading branch information