Remove unnecessary mutability

This commit is contained in:
Thomas Winwood
2017-06-29 08:04:26 +01:00
committed by GitHub
parent 7ce0615193
commit 32a02b5916
+5 -5
View File
@@ -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
}
}