mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
cargo fix --edition
This commit is contained in:
parent
e1fcffb336
commit
a15d33a10e
197 changed files with 1414 additions and 1380 deletions
|
@ -6,21 +6,21 @@
|
|||
|
||||
//! The rule tree.
|
||||
|
||||
use applicable_declarations::ApplicableDeclarationList;
|
||||
use crate::applicable_declarations::ApplicableDeclarationList;
|
||||
use crate::properties::{Importance, LonghandIdSet, PropertyDeclarationBlock};
|
||||
use crate::shared_lock::{Locked, SharedRwLockReadGuard, StylesheetGuards};
|
||||
use crate::stylesheets::StyleRule;
|
||||
use crate::thread_state;
|
||||
#[cfg(feature = "gecko")]
|
||||
use gecko::selector_parser::PseudoElement;
|
||||
#[cfg(feature = "gecko")]
|
||||
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
|
||||
use properties::{Importance, LonghandIdSet, PropertyDeclarationBlock};
|
||||
use servo_arc::{Arc, ArcBorrow, ArcUnion, ArcUnionBorrow};
|
||||
use shared_lock::{Locked, SharedRwLockReadGuard, StylesheetGuards};
|
||||
use smallvec::SmallVec;
|
||||
use std::io::{self, Write};
|
||||
use std::mem;
|
||||
use std::ptr;
|
||||
use std::sync::atomic::{AtomicPtr, AtomicUsize, Ordering};
|
||||
use stylesheets::StyleRule;
|
||||
use thread_state;
|
||||
|
||||
/// The rule tree, the structure servo uses to preserve the results of selector
|
||||
/// matching.
|
||||
|
@ -1149,7 +1149,7 @@ impl StrongRuleNode {
|
|||
|
||||
unsafe fn assert_free_list_has_no_duplicates_or_null(&self) {
|
||||
assert!(cfg!(debug_assertions), "This is an expensive check!");
|
||||
use hash::FxHashSet;
|
||||
use crate::hash::FxHashSet;
|
||||
|
||||
let me = &*self.ptr();
|
||||
assert!(me.is_root());
|
||||
|
@ -1430,7 +1430,7 @@ impl StrongRuleNode {
|
|||
&self,
|
||||
guards: &StylesheetGuards,
|
||||
) -> (LonghandIdSet, bool) {
|
||||
use properties::PropertyDeclarationId;
|
||||
use crate::properties::PropertyDeclarationId;
|
||||
|
||||
// We want to iterate over cascade levels that override the animations
|
||||
// level, i.e. !important levels and the transitions level.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue