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/htmlstyleelement.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/htmlstyleelement.rs')
-rw-r--r-- | src/components/script/dom/htmlstyleelement.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/script/dom/htmlstyleelement.rs b/src/components/script/dom/htmlstyleelement.rs index be26cd3c153..485a2990602 100644 --- a/src/components/script/dom/htmlstyleelement.rs +++ b/src/components/script/dom/htmlstyleelement.rs @@ -60,14 +60,14 @@ impl<'a> StyleElementHelpers for JSRef<'a, HTMLStyleElement> { } impl<'a> VirtualMethods for JSRef<'a, HTMLStyleElement> { - 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 child_inserted(&mut self, child: &JSRef<Node>) { + fn child_inserted(&self, child: &JSRef<Node>) { match self.super_type() { - Some(ref mut s) => s.child_inserted(child), + Some(ref s) => s.child_inserted(child), _ => (), } self.parse_own_css(); |