Cleanup a mutable variable in dispatch_event.

This commit is contained in:
Ms2ger 2014-06-11 23:01:15 +02:00
parent ed333ad8c3
commit d6eae6ae8b

View file

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