mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix warnings in util.
This commit is contained in:
parent
b25564440d
commit
830e6741c7
9 changed files with 35 additions and 32 deletions
|
@ -2,11 +2,11 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use std::sync::atomic::{AtomicUint, ATOMIC_UINT_INIT, Ordering};
|
||||
use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
|
||||
use std::rc::Rc;
|
||||
use std::cell::RefCell;
|
||||
|
||||
static mut next_tid: AtomicUint = ATOMIC_UINT_INIT;
|
||||
static mut next_tid: AtomicUsize = ATOMIC_USIZE_INIT;
|
||||
|
||||
thread_local!(static TASK_LOCAL_TID: Rc<RefCell<Option<uint>>> = Rc::new(RefCell::new(None)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue