diff --git a/Cargo.toml b/Cargo.toml index 453b04c..2769abf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "freetype-rs" -version = "0.4.0" +version = "0.4.1" authors = ["Coeuvre "] keywords = ["freetype", "font", "glyph"] description = "Bindings for FreeType font library" diff --git a/src/face.rs b/src/face.rs index df47b7b..3fb733f 100644 --- a/src/face.rs +++ b/src/face.rs @@ -78,7 +78,7 @@ impl<'a> Face<'a> { pub fn attach_file(&self, filepathname: &str) -> FtResult<()> { let err = unsafe { - ffi::FT_Attach_File(self.raw, filepathname.as_ptr() as *const i8) + ffi::FT_Attach_File(self.raw, filepathname.as_ptr() as *const _) }; if err == ffi::FT_Err_Ok { Ok(()) diff --git a/src/lib.rs b/src/lib.rs index cee61c8..7855f1e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ #![deny(missing_copy_implementations)] -#![deny(raw_pointer_derive)] #[macro_use] extern crate bitflags;