From c70a1902bad7afd6eebdec22bbcb18ac9bbc513f Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Fri, 27 Jun 2014 12:26:31 -0600 Subject: [PATCH] Warning police. --- appkit.rs | 2 ++ cocoa.rc | 2 ++ 2 files changed, 4 insertions(+) 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;