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/layout/layout_debug.rs | |
parent | 12d19760b37ee0271152695a1ac9ca040e72fa8d (diff) | |
download | servo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.tar.gz servo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.zip |
Fix deprecation warnings
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r-- | components/layout/layout_debug.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs index c44fcd7e25f..d3af6b4d8d5 100644 --- a/components/layout/layout_debug.rs +++ b/components/layout/layout_debug.rs @@ -13,12 +13,12 @@ use std::cell::RefCell; use std::fs::File; use std::io::Write; #[cfg(debug_assertions)] -use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT}; +use std::sync::atomic::{AtomicUsize, Ordering}; thread_local!(static STATE_KEY: RefCell<Option<State>> = RefCell::new(None)); #[cfg(debug_assertions)] -static DEBUG_ID_COUNTER: AtomicUsize = ATOMIC_USIZE_INIT; +static DEBUG_ID_COUNTER: AtomicUsize = AtomicUsize::new(0); pub struct Scope; |