From b9ca313e687c991223e23e5520529815dc281205 Mon Sep 17 00:00:00 2001 From: Jason Heeris Date: Tue, 22 Jun 2021 22:07:47 +0800 Subject: [PATCH] The #[repr(C)] attribute on the callback example is not necessary, since the type is not used in C. --- src/ffi.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ffi.md b/src/ffi.md index f5f74c3..7ea2530 100644 --- a/src/ffi.md +++ b/src/ffi.md @@ -310,7 +310,6 @@ referenced Rust object. Rust code: ```rust,no_run -#[repr(C)] struct RustObject { a: i32, // Other members...