mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix deprecation warnings
This commit is contained in:
parent
12d19760b3
commit
7cf98f6b01
6 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue