diff options
author | Cullen Rhodes <rhodes.cullen@gmail.com> | 2016-05-22 16:32:18 +0100 |
---|---|---|
committer | Cullen Rhodes <rhodes.cullen@gmail.com> | 2016-05-27 10:18:44 +0100 |
commit | 40acd24e8fef2a3c46ecdb21b4be1363d48e8ec4 (patch) | |
tree | a7786b1554ccc97240fdde367fe0ed5455c4c59f /components/gfx | |
parent | 4dcb05ca4f521b2c5eb12000678be035465e092b (diff) | |
download | servo-40acd24e8fef2a3c46ecdb21b4be1363d48e8ec4.tar.gz servo-40acd24e8fef2a3c46ecdb21b4be1363d48e8ec4.zip |
Report use statements that use {} with only one entry
Diffstat (limited to 'components/gfx')
-rw-r--r-- | components/gfx/paint_thread.rs | 2 | ||||
-rw-r--r-- | components/gfx/platform/freetype/font.rs | 2 | ||||
-rw-r--r-- | components/gfx/platform/macos/font.rs | 2 | ||||
-rw-r--r-- | components/gfx/text/shaping/harfbuzz.rs | 36 | ||||
-rw-r--r-- | components/gfx/text/text_run.rs | 2 |
5 files changed, 22 insertions, 22 deletions
diff --git a/components/gfx/paint_thread.rs b/components/gfx/paint_thread.rs index 51cddfb008e..bafe17ce015 100644 --- a/components/gfx/paint_thread.rs +++ b/components/gfx/paint_thread.rs @@ -31,7 +31,7 @@ use std::mem as std_mem; use std::sync::Arc; use std::sync::mpsc::{Receiver, Sender, channel}; use url::Url; -use util::geometry::{ExpandToPixelBoundaries}; +use util::geometry::ExpandToPixelBoundaries; use util::opts; use util::thread; use util::thread_state; diff --git a/components/gfx/platform/freetype/font.rs b/components/gfx/platform/freetype/font.rs index caf04e53699..7bc26800df0 100644 --- a/components/gfx/platform/freetype/font.rs +++ b/components/gfx/platform/freetype/font.rs @@ -7,6 +7,7 @@ extern crate freetype; use app_units::Au; use font::{FontHandleMethods, FontMetrics, FontTableMethods}; use font::{FontTableTag, FractionalPixel, GPOS, GSUB, KERN}; +use freetype::freetype::ft_sfnt_os2; use freetype::freetype::{FTErrorMethods, FT_F26Dot6, FT_Face, FT_FaceRec}; use freetype::freetype::{FT_Done_Face, FT_New_Memory_Face}; use freetype::freetype::{FT_Get_Char_Index, FT_Get_Postscript_Name}; @@ -15,7 +16,6 @@ use freetype::freetype::{FT_GlyphSlot, FT_Library, FT_Long, FT_ULong}; use freetype::freetype::{FT_KERNING_DEFAULT, FT_STYLE_FLAG_BOLD, FT_STYLE_FLAG_ITALIC}; use freetype::freetype::{FT_Load_Glyph, FT_Set_Char_Size}; use freetype::freetype::{FT_SizeRec, FT_Size_Metrics, FT_UInt, struct_FT_Vector_}; -use freetype::freetype::{ft_sfnt_os2}; use freetype::tt_os2::TT_OS2; use libc::c_char; use platform::font_context::FontContextHandle; diff --git a/components/gfx/platform/macos/font.rs b/components/gfx/platform/macos/font.rs index 4a12b50163a..4e4ae77213b 100644 --- a/components/gfx/platform/macos/font.rs +++ b/components/gfx/platform/macos/font.rs @@ -16,8 +16,8 @@ use core_foundation::string::UniChar; use core_graphics::font::CGGlyph; use core_graphics::geometry::CGRect; use core_text::font::CTFont; +use core_text::font_descriptor::kCTFontDefaultOrientation; use core_text::font_descriptor::{SymbolicTraitAccessors, TraitAccessors}; -use core_text::font_descriptor::{kCTFontDefaultOrientation}; use font::{FontHandleMethods, FontMetrics, FontTableTag, FontTableMethods, FractionalPixel}; use font::{GPOS, GSUB, KERN}; use platform::font_template::FontTemplateData; 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; |