From 2bcc19d7de2cc4d7cf46e2b2c759aa465d72b12a Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sun, 31 Jul 2022 21:45:14 +0900 Subject: [PATCH] Fix warnings --- src/unicode_support/fontconfig.rs | 2 ++ src/unicode_support/freetype.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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,