aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_debug.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/layout/layout_debug.rs
parent12d19760b37ee0271152695a1ac9ca040e72fa8d (diff)
downloadservo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.tar.gz
servo-7cf98f6b016e2f6d39bd9da253612a55cf38e013.zip
Fix deprecation warnings
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r--components/layout/layout_debug.rs4
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;