From 32a02b591671f0d9617ba39abfbc09f1032464ca Mon Sep 17 00:00:00 2001 From: Thomas Winwood Date: Thu, 29 Jun 2017 08:04:26 +0100 Subject: [PATCH] Remove unnecessary mutability --- src/font.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/font.rs b/src/font.rs index d0305e7..747a547 100644 --- a/src/font.rs +++ b/src/font.rs @@ -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 } }