Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Deal with two ultra-trivial warnings #64

Merged
merged 2 commits into from
Jun 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,11 @@ impl CTFont {
pub fn get_bounding_rects_for_glyphs(&self, orientation: CTFontOrientation, glyphs: &[CGGlyph])
-> CGRect {
unsafe {
let mut result = CTFontGetBoundingRectsForGlyphs(self.as_concrete_TypeRef(),
orientation,
glyphs.as_ptr(),
ptr::null_mut(),
glyphs.len() as CFIndex);
let result = CTFontGetBoundingRectsForGlyphs(self.as_concrete_TypeRef(),
orientation,
glyphs.as_ptr(),
ptr::null_mut(),
glyphs.len() as CFIndex);
result
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/font_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl CTFontDescriptor {
pub fn font_path(&self) -> Option<String> {
unsafe {
let value = CTFontDescriptorCopyAttribute(self.obj, kCTFontURLAttribute);
if (value.is_null()) {
if value.is_null() {
return None;
}

Expand Down