diff --git a/cocoa-foundation/src/foundation.rs b/cocoa-foundation/src/foundation.rs index 2924aca9d..d64edac2b 100644 --- a/cocoa-foundation/src/foundation.rs +++ b/cocoa-foundation/src/foundation.rs @@ -612,7 +612,7 @@ pub trait NSString: Sized { unsafe fn init_str(self, string: &str) -> Self; unsafe fn UTF8String(self) -> *const libc::c_char; unsafe fn len(self) -> usize; - unsafe fn isEqualToString(self, &str) -> bool; + unsafe fn isEqualToString(self, _: &str) -> bool; unsafe fn substringWithRange(self, range: NSRange) -> id; } diff --git a/core-graphics-types/src/base.rs b/core-graphics-types/src/base.rs index d5efc3b62..0add1e6b3 100644 --- a/core-graphics-types/src/base.rs +++ b/core-graphics-types/src/base.rs @@ -26,7 +26,7 @@ pub type CGFloat = libc::c_double; #[cfg(not(target_pointer_width = "64"))] pub type CGFloat = libc::c_float; -pub type CGError = libc::int32_t; +pub type CGError = i32; pub type CGGlyph = libc::c_ushort; diff --git a/core-graphics/src/event.rs b/core-graphics/src/event.rs index 8cf9c6262..bc01b8ad2 100644 --- a/core-graphics/src/event.rs +++ b/core-graphics/src/event.rs @@ -505,7 +505,7 @@ impl<'tap_life> CGEventTap<'tap_life> { callback_ref: Box::from_raw(cbr), }) } else { - Box::from_raw(cbr); + let _ = Box::from_raw(cbr); Err(()) } }