diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-11-01 17:23:56 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-11-06 15:26:02 +0100 |
commit | 76e59a46d3aff701b2e8dfbaf047f6d5c3edcced (patch) | |
tree | ee36ca9b3f981d01184871fe72fbc31347086e92 /components/gfx/text | |
parent | 45f7199eee82c66637ec68287eafa40a651001c4 (diff) | |
download | servo-76e59a46d3aff701b2e8dfbaf047f6d5c3edcced.tar.gz servo-76e59a46d3aff701b2e8dfbaf047f6d5c3edcced.zip |
Sort `use` statements
Diffstat (limited to 'components/gfx/text')
-rw-r--r-- | components/gfx/text/shaping/harfbuzz.rs | 6 | ||||
-rw-r--r-- | components/gfx/text/text_run.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index dc25783cb11..343c27c63c9 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -5,7 +5,6 @@ #![allow(unsafe_code)] use app_units::Au; -use euclid::Point2D; use crate::font::{ShapingFlags, Font, FontTableMethods, FontTableTag, ShapingOptions, KERN}; use crate::harfbuzz::{HB_DIRECTION_LTR, HB_DIRECTION_RTL, HB_MEMORY_MODE_READONLY}; use crate::harfbuzz::{hb_blob_create, hb_face_create_for_tables}; @@ -34,11 +33,12 @@ use crate::harfbuzz::hb_font_set_scale; use crate::harfbuzz::hb_glyph_info_t; use crate::harfbuzz::hb_glyph_position_t; use crate::platform::font::FontTable; -use std::{char, cmp, ptr}; -use std::os::raw::{c_char, c_int, c_uint, c_void}; use crate::text::glyph::{ByteIndex, GlyphData, GlyphId, GlyphStore}; use crate::text::shaping::ShaperMethods; use crate::text::util::{fixed_to_float, float_to_fixed, is_bidi_control}; +use euclid::Point2D; +use std::{char, cmp, ptr}; +use std::os::raw::{c_char, c_int, c_uint, c_void}; const NO_GLYPH: i32 = -1; const LIGA: u32 = ot_tag!('l', 'i', 'g', 'a'); diff --git a/components/gfx/text/text_run.rs b/components/gfx/text/text_run.rs index c97575bf636..7a6e6623b9c 100644 --- a/components/gfx/text/text_run.rs +++ b/components/gfx/text/text_run.rs @@ -6,13 +6,13 @@ use app_units::Au; use crate::font::{Font, FontHandleMethods, FontMetrics, ShapingFlags}; use crate::font::{RunMetrics, ShapingOptions}; use crate::platform::font_template::FontTemplateData; +use crate::text::glyph::{ByteIndex, GlyphStore}; use range::Range; use std::cell::Cell; use std::cmp::{Ordering, max}; use std::slice::Iter; use std::sync::Arc; use style::str::char_is_whitespace; -use crate::text::glyph::{ByteIndex, GlyphStore}; use unicode_bidi as bidi; use webrender_api; use xi_unicode::LineBreakLeafIter; |