mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -66,8 +66,8 @@ impl Attr {
|
|||
}
|
||||
|
||||
pub fn set_value(&mut self, set_type: AttrSettingType, value: DOMString) {
|
||||
let mut owner = self.owner.get().root();
|
||||
let node: &mut JSRef<Node> = NodeCast::from_mut_ref(&mut *owner);
|
||||
let owner = self.owner.get().root();
|
||||
let node: &JSRef<Node> = NodeCast::from_ref(&*owner);
|
||||
let namespace_is_null = self.namespace == namespace::Null;
|
||||
|
||||
match set_type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue