diff options
author | Adam Szopa <adam@szopa.org.pl> | 2015-10-21 01:00:58 +0200 |
---|---|---|
committer | Adam Szopa <adam@szopa.org.pl> | 2015-10-21 01:27:48 +0200 |
commit | 88991013ab8f5cf2a3b37d794fcd1699264e8f39 (patch) | |
tree | 8ff70c9d7c68211f3d5ba63ce82768e0feab081f /components/script/dom/htmlanchorelement.rs | |
parent | 11d23a41b31c2b2846d1e9c6b40e87ba7e2a095f (diff) | |
download | servo-88991013ab8f5cf2a3b37d794fcd1699264e8f39.tar.gz servo-88991013ab8f5cf2a3b37d794fcd1699264e8f39.zip |
Remove explicit lifetimes which can be elided.
Diffstat (limited to 'components/script/dom/htmlanchorelement.rs')
-rw-r--r-- | components/script/dom/htmlanchorelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs index ca775b45672..4e2c396b88e 100644 --- a/components/script/dom/htmlanchorelement.rs +++ b/components/script/dom/htmlanchorelement.rs @@ -54,7 +54,7 @@ impl HTMLAnchorElement { } impl VirtualMethods for HTMLAnchorElement { - fn super_type<'b>(&'b self) -> Option<&'b VirtualMethods> { + fn super_type(&self) -> Option<&VirtualMethods> { let htmlelement: &HTMLElement = HTMLElementCast::from_ref(self); Some(htmlelement as &VirtualMethods) } @@ -113,7 +113,7 @@ impl HTMLAnchorElementMethods for HTMLAnchorElement { } impl Activatable for HTMLAnchorElement { - fn as_element<'b>(&'b self) -> &'b Element { + fn as_element(&self) -> &Element { ElementCast::from_ref(self) } |