diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-05 11:47:12 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-05 11:47:12 +0200 |
commit | 24546b4da2f410a560e982206d4c5401577f1f9c (patch) | |
tree | a19163d49c562af996304e388a7b63c9ce4b0e42 | |
parent | 573c0a74684dc0043da4800a84065d72453641fd (diff) | |
download | servo-24546b4da2f410a560e982206d4c5401577f1f9c.tar.gz servo-24546b4da2f410a560e982206d4c5401577f1f9c.zip |
Use snake case in freetype.
-rw-r--r-- | components/gfx/platform/freetype/font_list.rs | 8 |
1 files 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<F>(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; |