aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx_traits/lib.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_traits/lib.rs
parent12d19760b37ee0271152695a1ac9ca040e72fa8d (diff)
downloadservo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.tar.gz
servo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.zip
Fix deprecation warnings
Diffstat (limited to 'components/gfx_traits/lib.rs')
-rw-r--r--components/gfx_traits/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs
index 9073e58e690..a3a85499a9e 100644
--- a/components/gfx_traits/lib.rs
+++ b/components/gfx_traits/lib.rs
@@ -16,7 +16,7 @@ extern crate serde;
pub mod print_tree;
use range::RangeIndex;
-use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
+use std::sync::atomic::{AtomicUsize, Ordering};
/// A newtype struct for denoting the age of messages; prevents race conditions.
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
@@ -75,7 +75,7 @@ pub enum FragmentType {
/// The next ID that will be used for a special scroll root id.
///
/// A special scroll root is a scroll root that is created for generated content.
-static NEXT_SPECIAL_SCROLL_ROOT_ID: AtomicUsize = ATOMIC_USIZE_INIT;
+static NEXT_SPECIAL_SCROLL_ROOT_ID: AtomicUsize = AtomicUsize::new(0);
/// If none of the bits outside this mask are set, the scroll root is a special scroll root.
/// Note that we assume that the top 16 bits of the address space are unused on the platform.