aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/invalidation/element/element_wrapper.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-11-01 14:09:54 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-11-10 17:47:28 +0100
commita15d33a10e8a0aa1c02fa44ede50a63b95606b8f (patch)
tree5b0ef37530e77e646c2b6bc7df3d95e756607e77 /components/style/invalidation/element/element_wrapper.rs
parente1fcffb336d763d851f14fae5cda464209552bb2 (diff)
downloadservo-a15d33a10e8a0aa1c02fa44ede50a63b95606b8f.tar.gz
servo-a15d33a10e8a0aa1c02fa44ede50a63b95606b8f.zip
`cargo fix --edition`
Diffstat (limited to 'components/style/invalidation/element/element_wrapper.rs')
-rw-r--r--components/style/invalidation/element/element_wrapper.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/style/invalidation/element/element_wrapper.rs b/components/style/invalidation/element/element_wrapper.rs
index 457c8238abc..167b995d524 100644
--- a/components/style/invalidation/element/element_wrapper.rs
+++ b/components/style/invalidation/element/element_wrapper.rs
@@ -5,16 +5,16 @@
//! A wrapper over an element and a snapshot, that allows us to selector-match
//! against a past state of the element.
-use dom::TElement;
-use element_state::ElementState;
-use selector_parser::{AttrValue, NonTSPseudoClass, PseudoElement, SelectorImpl};
-use selector_parser::{Snapshot, SnapshotMap};
+use crate::dom::TElement;
+use crate::element_state::ElementState;
+use crate::selector_parser::{AttrValue, NonTSPseudoClass, PseudoElement, SelectorImpl};
+use crate::selector_parser::{Snapshot, SnapshotMap};
+use crate::{Atom, CaseSensitivityExt, LocalName, Namespace, WeakAtom};
use selectors::attr::{AttrSelectorOperation, CaseSensitivity, NamespaceConstraint};
use selectors::matching::{ElementSelectorFlags, MatchingContext};
use selectors::{Element, OpaqueElement};
use std::cell::Cell;
use std::fmt;
-use {Atom, CaseSensitivityExt, LocalName, Namespace, WeakAtom};
/// In order to compute restyle hints, we perform a selector match against a
/// list of partial selectors whose rightmost simple selector may be sensitive
@@ -60,7 +60,7 @@ pub trait ElementSnapshot: Sized {
/// A callback that should be called for each class of the snapshot. Should
/// only be called if `has_attrs()` returns true.
- fn each_class<F>(&self, F)
+ fn each_class<F>(&self, _: F)
where
F: FnMut(&Atom);