From 3717a03e6d13d67cca9fcca8b572d4df9ba512b8 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Sun, 21 Apr 2024 20:13:01 +0200 Subject: [PATCH] Re-enable improper_ctypes lint on bindings The linked issue https://github.com/rust-lang/rust/issues/34798 has since been fixed, and rust will not warn if PhantomData is used in FFI structs. See also: https://github.com/rust-lang/rust/pull/39462 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 39f6505..c5cc5ca 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,6 +27,6 @@ pub fn succeeded(error: FT_Error) -> bool { error == freetype::FT_Err_Ok as FT_Error } -#[allow(improper_ctypes)] // https://github.com/rust-lang/rust/issues/34798 +#[deny(improper_ctypes)] pub mod freetype; pub mod tt_os2;