diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-06-06 23:17:50 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-06-07 00:58:43 +0900 |
commit | 2aa1554b0c36bce1b25028c6f2a0dfbf9abefeb0 (patch) | |
tree | 271325747727159b378846e5abdbde169f4151b6 /src/components/script/dom/htmlanchorelement.rs | |
parent | d8483d2365b234ec32478eb836fe6019bead9265 (diff) | |
download | servo-2aa1554b0c36bce1b25028c6f2a0dfbf9abefeb0.tar.gz servo-2aa1554b0c36bce1b25028c6f2a0dfbf9abefeb0.zip |
Remove needless '&self mut' from VirtualMethods trait.
Diffstat (limited to 'src/components/script/dom/htmlanchorelement.rs')
-rw-r--r-- | src/components/script/dom/htmlanchorelement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/htmlanchorelement.rs b/src/components/script/dom/htmlanchorelement.rs index 3ed06945f80..5e3cf82b25f 100644 --- a/src/components/script/dom/htmlanchorelement.rs +++ b/src/components/script/dom/htmlanchorelement.rs @@ -68,12 +68,12 @@ impl<'a> PrivateHTMLAnchorElementHelpers for JSRef<'a, HTMLAnchorElement> { } impl<'a> VirtualMethods for JSRef<'a, HTMLAnchorElement> { - fn super_type<'a>(&'a mut self) -> Option<&'a mut VirtualMethods:> { - let htmlelement: &mut JSRef<HTMLElement> = HTMLElementCast::from_mut_ref(self); - Some(htmlelement as &mut VirtualMethods:) + fn super_type<'a>(&'a self) -> Option<&'a VirtualMethods:> { + let htmlelement: &JSRef<HTMLElement> = HTMLElementCast::from_ref(self); + Some(htmlelement as &VirtualMethods:) } - fn handle_event(&mut self, event: &JSRef<Event>) { + fn handle_event(&self, event: &JSRef<Event>) { match self.super_type() { Some(s) => { s.handle_event(event); |