aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/attr.rs
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-06-06 23:17:50 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-06-07 00:58:43 +0900
commit2aa1554b0c36bce1b25028c6f2a0dfbf9abefeb0 (patch)
tree271325747727159b378846e5abdbde169f4151b6 /src/components/script/dom/attr.rs
parentd8483d2365b234ec32478eb836fe6019bead9265 (diff)
downloadservo-2aa1554b0c36bce1b25028c6f2a0dfbf9abefeb0.tar.gz
servo-2aa1554b0c36bce1b25028c6f2a0dfbf9abefeb0.zip
Remove needless '&self mut' from VirtualMethods trait.
Diffstat (limited to 'src/components/script/dom/attr.rs')
-rw-r--r--src/components/script/dom/attr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/attr.rs b/src/components/script/dom/attr.rs
index a44e9e3f111..741c5592732 100644
--- a/src/components/script/dom/attr.rs
+++ b/src/components/script/dom/attr.rs
@@ -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 {