diff --git a/appkit.rs b/appkit.rs index 46d3c1d..4af0c96 100644 --- a/appkit.rs +++ b/appkit.rs @@ -11,6 +11,7 @@ use base::{ObjCMethodCall, id}; pub type CGFloat = f32; +#[allow(dead_code)] pub struct NSPoint { x: f64, y: f64, @@ -25,6 +26,7 @@ impl NSPoint { } } +#[allow(dead_code)] pub struct NSSize { width: f64, height: f64, diff --git a/cocoa.rc b/cocoa.rc index 6598ff6..f22381d 100644 --- a/cocoa.rc +++ b/cocoa.rc @@ -17,6 +17,8 @@ #![feature(globs)] +#![allow(non_snake_case_functions)] + extern crate libc; extern crate std;