Skip to content

Commit f4c24f2

Browse files
committed
Fix warnings
1 parent 1e01ca4 commit f4c24f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cocoa-foundation/src/foundation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ pub trait NSString: Sized {
623623
unsafe fn init_str(self, string: &str) -> Self;
624624
unsafe fn UTF8String(self) -> *const libc::c_char;
625625
unsafe fn len(self) -> usize;
626-
unsafe fn isEqualToString(self, &str) -> bool;
626+
unsafe fn isEqualToString(self, _: &str) -> bool;
627627
unsafe fn substringWithRange(self, range: NSRange) -> id;
628628
}
629629

core-graphics-types/src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub type CGFloat = libc::c_double;
2626
#[cfg(not(target_pointer_width = "64"))]
2727
pub type CGFloat = libc::c_float;
2828

29-
pub type CGError = libc::int32_t;
29+
pub type CGError = i32;
3030

3131
pub type CGGlyph = libc::c_ushort;
3232

core-graphics/src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ impl<'tap_life> CGEventTap<'tap_life> {
505505
callback_ref: Box::from_raw(cbr),
506506
})
507507
} else {
508-
Box::from_raw(cbr);
508+
let _ = Box::from_raw(cbr);
509509
Err(())
510510
}
511511
}

0 commit comments

Comments
 (0)