aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/font.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-01-28 11:32:40 +0100
committerSimon Sapin <simon.sapin@exyr.org>2019-01-28 11:32:40 +0100
commit7cf98f6b016e2f6d39bd9da253612a55cf38e013 (patch)
tree2ef5fdccc4714705e3f0fbf249fee4939af167d3 /components/gfx/font.rs
parent12d19760b37ee0271152695a1ac9ca040e72fa8d (diff)
downloadservo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.tar.gz
servo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.zip
Fix deprecation warnings
Diffstat (limited to 'components/gfx/font.rs')
-rw-r--r--components/gfx/font.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/gfx/font.rs b/components/gfx/font.rs
index 46dc113fa76..6a0000494c5 100644
--- a/components/gfx/font.rs
+++ b/components/gfx/font.rs
@@ -22,7 +22,7 @@ use std::collections::HashMap;
use std::iter;
use std::rc::Rc;
use std::str;
-use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
+use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
use style::computed_values::{font_stretch, font_style, font_variant_caps, font_weight};
use style::properties::style_structs::Font as FontStyleStruct;
@@ -39,7 +39,7 @@ pub const GPOS: u32 = ot_tag!('G', 'P', 'O', 'S');
pub const GSUB: u32 = ot_tag!('G', 'S', 'U', 'B');
pub const KERN: u32 = ot_tag!('k', 'e', 'r', 'n');
-static TEXT_SHAPING_PERFORMANCE_COUNTER: AtomicUsize = ATOMIC_USIZE_INIT;
+static TEXT_SHAPING_PERFORMANCE_COUNTER: AtomicUsize = AtomicUsize::new(0);
// FontHandle encapsulates access to the platform's font API,
// e.g. quartz, FreeType. It provides access to metrics and tables