diff --git a/src/unicode_support/fontconfig.rs b/src/unicode_support/fontconfig.rs index 613821d..1b6f19d 100644 --- a/src/unicode_support/fontconfig.rs +++ b/src/unicode_support/fontconfig.rs @@ -7,6 +7,8 @@ mod ffi { #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] + #![allow(dead_code)] + #![allow(deref_nullptr)] include!(concat!(env!("OUT_DIR"), "/unicode_support_bindings.rs")); } diff --git a/src/unicode_support/freetype.rs b/src/unicode_support/freetype.rs index 91705d5..6a2ae46 100644 --- a/src/unicode_support/freetype.rs +++ b/src/unicode_support/freetype.rs @@ -53,7 +53,7 @@ mod ffi { let cstring: CString = CString::from_vec_unchecked( path.as_os_str().to_str().unwrap().as_bytes().to_vec(), ); - let mut args = FT_Open_Args { + let args = FT_Open_Args { flags: FT_OPEN_PATHNAME, memory_base: 0 as *const u8, memory_size: 0,