diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-05-31 03:06:11 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-05-31 03:11:18 +0900 |
commit | db76dbf5ca1daea6a65b35deb4f4501e5aa481f9 (patch) | |
tree | b99d9b630012e6206209a22c27ec2218612750d8 | |
parent | 857a731eaa62512e4045d54a5a306e435be86151 (diff) | |
download | servo-db76dbf5ca1daea6a65b35deb4f4501e5aa481f9.tar.gz servo-db76dbf5ca1daea6a65b35deb4f4501e5aa481f9.zip |
Remove needless '&mut self' from HTMLLIElementMethods.
-rw-r--r-- | src/components/script/dom/htmllielement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/dom/htmllielement.rs b/src/components/script/dom/htmllielement.rs index 0f8aabbfa10..ab2665b76ee 100644 --- a/src/components/script/dom/htmllielement.rs +++ b/src/components/script/dom/htmllielement.rs @@ -39,9 +39,9 @@ impl HTMLLIElement { pub trait HTMLLIElementMethods { fn Value(&self) -> i32; - fn SetValue(&mut self, _value: i32) -> ErrorResult; + fn SetValue(&self, _value: i32) -> ErrorResult; fn Type(&self) -> DOMString; - fn SetType(&mut self, _type: DOMString) -> ErrorResult; + fn SetType(&self, _type: DOMString) -> ErrorResult; } impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> { @@ -49,7 +49,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> { 0 } - fn SetValue(&mut self, _value: i32) -> ErrorResult { + fn SetValue(&self, _value: i32) -> ErrorResult { Ok(()) } @@ -57,7 +57,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> { "".to_owned() } - fn SetType(&mut self, _type: DOMString) -> ErrorResult { + fn SetType(&self, _type: DOMString) -> ErrorResult { Ok(()) } } |