mirror of
https://github.com/servo/servo.git
synced 2025-10-07 03:59:23 +01:00
Remove needless '&self mut' from VirtualMethods trait.
This commit is contained in:
parent
d8483d2365
commit
2aa1554b0c
13 changed files with 109 additions and 102 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue