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