diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-11-01 14:09:54 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-11-10 17:47:28 +0100 |
commit | a15d33a10e8a0aa1c02fa44ede50a63b95606b8f (patch) | |
tree | 5b0ef37530e77e646c2b6bc7df3d95e756607e77 /components/selectors/parser.rs | |
parent | e1fcffb336d763d851f14fae5cda464209552bb2 (diff) | |
download | servo-a15d33a10e8a0aa1c02fa44ede50a63b95606b8f.tar.gz servo-a15d33a10e8a0aa1c02fa44ede50a63b95606b8f.zip |
`cargo fix --edition`
Diffstat (limited to 'components/selectors/parser.rs')
-rw-r--r-- | components/selectors/parser.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/components/selectors/parser.rs b/components/selectors/parser.rs index 0709c4eef99..ff5a4ff08b3 100644 --- a/components/selectors/parser.rs +++ b/components/selectors/parser.rs @@ -2,26 +2,26 @@ * 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 attr::{AttrSelectorOperator, AttrSelectorWithOptionalNamespace}; -use attr::{NamespaceConstraint, ParsedAttrSelectorOperation}; -use attr::{ParsedCaseSensitivity, SELECTOR_WHITESPACE}; -use bloom::BLOOM_HASH_MASK; -use builder::{SelectorBuilder, SpecificityAndFlags}; -use context::QuirksMode; +use crate::attr::{AttrSelectorOperator, AttrSelectorWithOptionalNamespace}; +use crate::attr::{NamespaceConstraint, ParsedAttrSelectorOperation}; +use crate::attr::{ParsedCaseSensitivity, SELECTOR_WHITESPACE}; +use crate::bloom::BLOOM_HASH_MASK; +use crate::builder::{SelectorBuilder, SpecificityAndFlags}; +use crate::context::QuirksMode; +use crate::sink::Push; +pub use crate::visitor::{SelectorVisitor, Visit}; use cssparser::{parse_nth, serialize_identifier}; use cssparser::{BasicParseError, BasicParseErrorKind, ParseError, ParseErrorKind}; use cssparser::{CowRcStr, Delimiter, SourceLocation}; use cssparser::{CssStringWriter, Parser as CssParser, ToCss, Token}; use precomputed_hash::PrecomputedHash; use servo_arc::ThinArc; -use sink::Push; use smallvec::SmallVec; use std::borrow::{Borrow, Cow}; use std::fmt::{self, Debug, Display, Write}; use std::iter::Rev; use std::slice; use thin_slice::ThinBoxedSlice; -pub use visitor::{SelectorVisitor, Visit}; /// A trait that represents a pseudo-element. pub trait PseudoElement: Sized + ToCss { @@ -465,7 +465,7 @@ where let namespace = match attr_selector.namespace() { Some(ns) => ns, None => { - empty_string = ::parser::namespace_empty_string::<Impl>(); + empty_string = crate::parser::namespace_empty_string::<Impl>(); NamespaceConstraint::Specific(&empty_string) }, }; @@ -2147,9 +2147,9 @@ where #[cfg(test)] pub mod tests { use super::*; - use builder::HAS_PSEUDO_BIT; + use crate::builder::HAS_PSEUDO_BIT; + use crate::parser; use cssparser::{serialize_identifier, Parser as CssParser, ParserInput, ToCss}; - use parser; use std::collections::HashMap; use std::fmt; |