Fix warnings

This commit is contained in:
Stephen Seo 2022-07-31 21:45:14 +09:00
parent 73badcc7f9
commit 2bcc19d7de
2 changed files with 3 additions and 1 deletions

View file

@ -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"));
}

View file

@ -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,