From 24546b4da2f410a560e982206d4c5401577f1f9c Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 5 Jun 2016 11:47:12 +0200 Subject: [PATCH] Use snake case in freetype. --- components/gfx/platform/freetype/font_list.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/gfx/platform/freetype/font_list.rs b/components/gfx/platform/freetype/font_list.rs index ef89adeffd1..c1b787aadbb 100644 --- a/components/gfx/platform/freetype/font_list.rs +++ b/components/gfx/platform/freetype/font_list.rs @@ -2,8 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#![allow(non_snake_case)] - extern crate fontconfig; extern crate freetype; @@ -28,9 +26,9 @@ static FC_FONTFORMAT: &'static [u8] = b"fontformat\0"; pub fn for_each_available_family(mut callback: F) where F: FnMut(String) { unsafe { let config = FcConfigGetCurrent(); - let fontSet = FcConfigGetFonts(config, FcSetSystem); - for i in 0..((*fontSet).nfont as isize) { - let font = (*fontSet).fonts.offset(i); + let font_set = FcConfigGetFonts(config, FcSetSystem); + for i in 0..((*font_set).nfont as isize) { + let font = (*font_set).fonts.offset(i); let mut family: *mut FcChar8 = ptr::null_mut(); let mut format: *mut FcChar8 = ptr::null_mut(); let mut v: c_int = 0;