Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jul 20, 2022
1 parent 48d510a commit 94081c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cocoa-foundation/src/foundation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion core-graphics-types/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

2 changes: 1 addition & 1 deletion core-graphics/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}
Expand Down

0 comments on commit 94081c8

Please sign in to comment.