From 40acd24e8fef2a3c46ecdb21b4be1363d48e8ec4 Mon Sep 17 00:00:00 2001 From: Cullen Rhodes Date: Sun, 22 May 2016 16:32:18 +0100 Subject: Report use statements that use {} with only one entry --- components/gfx/text/shaping/harfbuzz.rs | 36 ++++++++++++++++----------------- components/gfx/text/text_run.rs | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) (limited to 'components/gfx/text') diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index 517e20917c5..5e6b025e21c 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -6,31 +6,31 @@ use app_units::Au; use euclid::Point2D; use font::{DISABLE_KERNING_SHAPING_FLAG, Font, FontTableMethods, FontTableTag}; use font::{IGNORE_LIGATURES_SHAPING_FLAG, KERN, RTL_FLAG, ShapingOptions}; +use harfbuzz::hb_blob_t; +use harfbuzz::hb_bool_t; +use harfbuzz::hb_buffer_add_utf8; +use harfbuzz::hb_buffer_destroy; +use harfbuzz::hb_buffer_get_glyph_positions; +use harfbuzz::hb_buffer_get_length; +use harfbuzz::hb_face_destroy; +use harfbuzz::hb_feature_t; +use harfbuzz::hb_font_create; +use harfbuzz::hb_font_funcs_create; +use harfbuzz::hb_font_funcs_set_glyph_func; +use harfbuzz::hb_font_funcs_set_glyph_h_advance_func; +use harfbuzz::hb_font_funcs_set_glyph_h_kerning_func; +use harfbuzz::hb_font_set_funcs; +use harfbuzz::hb_font_set_ppem; +use harfbuzz::hb_font_set_scale; +use harfbuzz::hb_glyph_info_t; +use harfbuzz::hb_glyph_position_t; use harfbuzz::{HB_DIRECTION_LTR, HB_DIRECTION_RTL, HB_MEMORY_MODE_READONLY}; use harfbuzz::{hb_blob_create, hb_face_create_for_tables}; -use harfbuzz::{hb_blob_t}; -use harfbuzz::{hb_bool_t}; -use harfbuzz::{hb_buffer_add_utf8}; use harfbuzz::{hb_buffer_create, hb_font_destroy}; -use harfbuzz::{hb_buffer_destroy}; use harfbuzz::{hb_buffer_get_glyph_infos, hb_shape}; -use harfbuzz::{hb_buffer_get_glyph_positions}; -use harfbuzz::{hb_buffer_get_length}; use harfbuzz::{hb_buffer_set_direction, hb_buffer_set_script}; use harfbuzz::{hb_buffer_t, hb_codepoint_t, hb_font_funcs_t}; -use harfbuzz::{hb_face_destroy}; use harfbuzz::{hb_face_t, hb_font_t}; -use harfbuzz::{hb_feature_t}; -use harfbuzz::{hb_font_create}; -use harfbuzz::{hb_font_funcs_create}; -use harfbuzz::{hb_font_funcs_set_glyph_func}; -use harfbuzz::{hb_font_funcs_set_glyph_h_advance_func}; -use harfbuzz::{hb_font_funcs_set_glyph_h_kerning_func}; -use harfbuzz::{hb_font_set_funcs}; -use harfbuzz::{hb_font_set_ppem}; -use harfbuzz::{hb_font_set_scale}; -use harfbuzz::{hb_glyph_info_t}; -use harfbuzz::{hb_glyph_position_t}; use harfbuzz::{hb_position_t, hb_tag_t}; use libc::{c_char, c_int, c_uint, c_void}; use platform::font::FontTable; diff --git a/components/gfx/text/text_run.rs b/components/gfx/text/text_run.rs index af8dba7b8a0..24024908ddc 100644 --- a/components/gfx/text/text_run.rs +++ b/components/gfx/text/text_run.rs @@ -3,8 +3,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use app_units::Au; +use font::ShapingOptions; use font::{Font, FontHandleMethods, FontMetrics, IS_WHITESPACE_SHAPING_FLAG, RunMetrics}; -use font::{ShapingOptions}; use platform::font_template::FontTemplateData; use range::Range; use std::cell::Cell; -- cgit v1.2.3