Remove needless '&self mut' from VirtualMethods trait.

This commit is contained in:
Tetsuharu OHZEKI 2014-06-06 23:17:50 +09:00
parent d8483d2365
commit 2aa1554b0c
13 changed files with 109 additions and 102 deletions

View file

@ -118,7 +118,7 @@ pub fn dispatch_event<'a, 'b>(target: &JSRef<'a, EventTarget>,
let target = event.GetTarget().root();
match target {
Some(mut target) => {
let node: Option<&mut JSRef<Node>> = NodeCast::to_mut_ref(&mut *target);
let node: Option<&JSRef<Node>> = NodeCast::to_ref(&mut *target);
match node {
Some(node) =>{
let vtable = vtable_for(node);