aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/restyle_hints.rs
diff options
context:
space:
mode:
authorJohannes Linke <johannes.linke@posteo.de>2016-01-02 16:51:01 +0100
committerJohannes Linke <johannes.linke@posteo.de>2016-01-02 23:27:15 +0100
commit6b215f38eefc98853244c2ec6f4187ae6f000417 (patch)
treecf4dbc65e6b6fa641359b713f91b596bf9f9a666 /components/style/restyle_hints.rs
parentb1ca3d1cdff412c5ae12113c3681f789becebabc (diff)
downloadservo-6b215f38eefc98853244c2ec6f4187ae6f000417.tar.gz
servo-6b215f38eefc98853244c2ec6f4187ae6f000417.zip
Fix a bunch of clippy lints
Diffstat (limited to 'components/style/restyle_hints.rs')
-rw-r--r--components/style/restyle_hints.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/components/style/restyle_hints.rs b/components/style/restyle_hints.rs
index f15685ff137..e1b1b477201 100644
--- a/components/style/restyle_hints.rs
+++ b/components/style/restyle_hints.rs
@@ -112,27 +112,27 @@ impl<'a, E> Element for ElementWrapper<'a, E> where E: Element {
state_pseudo_classes!(snapshot_state_accessors);
fn parent_element(&self) -> Option<Self> {
- self.element.parent_element().map(|el| ElementWrapper::new(el))
+ self.element.parent_element().map(ElementWrapper::new)
}
fn first_child_element(&self) -> Option<Self> {
- self.element.first_child_element().map(|el| ElementWrapper::new(el))
+ self.element.first_child_element().map(ElementWrapper::new)
}
fn last_child_element(&self) -> Option<Self> {
- self.element.last_child_element().map(|el| ElementWrapper::new(el))
+ self.element.last_child_element().map(ElementWrapper::new)
}
fn prev_sibling_element(&self) -> Option<Self> {
- self.element.prev_sibling_element().map(|el| ElementWrapper::new(el))
+ self.element.prev_sibling_element().map(ElementWrapper::new)
}
fn next_sibling_element(&self) -> Option<Self> {
- self.element.next_sibling_element().map(|el| ElementWrapper::new(el))
+ self.element.next_sibling_element().map(ElementWrapper::new)
}
fn is_html_element_in_html_document(&self) -> bool {
self.element.is_html_element_in_html_document()
}
- fn get_local_name<'b>(&'b self) -> &'b Atom {
+ fn get_local_name(&self) -> &Atom {
self.element.get_local_name()
}
- fn get_namespace<'b>(&'b self) -> &'b Namespace {
+ fn get_namespace<'b>(&self) -> &Namespace {
self.element.get_namespace()
}
fn get_id(&self) -> Option<Atom> {