diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-01-28 11:32:40 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-01-28 11:32:40 +0100 |
commit | 7cf98f6b016e2f6d39bd9da253612a55cf38e013 (patch) | |
tree | 2ef5fdccc4714705e3f0fbf249fee4939af167d3 /components/gfx_traits/lib.rs | |
parent | 12d19760b37ee0271152695a1ac9ca040e72fa8d (diff) | |
download | servo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.tar.gz servo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.zip |
Fix deprecation warnings
Diffstat (limited to 'components/gfx_traits/lib.rs')
-rw-r--r-- | components/gfx_traits/lib.rs | 4 |
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. |