From 0f051f3b61c3271ce2b9e96e5d5af68eec8673c7 Mon Sep 17 00:00:00 2001 From: Sven Nilsen Date: Tue, 1 Dec 2015 21:24:23 +0100 Subject: [PATCH] Fix ARM Closes https://github.com/PistonDevelopers/freetype-rs/issues/178 - Removed unknown `deny` attribute --- Cargo.toml | 2 +- src/face.rs | 2 +- src/lib.rs | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) 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;