Remove needless '&mut self' from HTMLLIElementMethods.

This commit is contained in:
Tetsuharu OHZEKI 2014-05-31 03:06:11 +09:00
parent 857a731eaa
commit db76dbf5ca

View file

@ -39,9 +39,9 @@ impl HTMLLIElement {
pub trait HTMLLIElementMethods { pub trait HTMLLIElementMethods {
fn Value(&self) -> i32; fn Value(&self) -> i32;
fn SetValue(&mut self, _value: i32) -> ErrorResult; fn SetValue(&self, _value: i32) -> ErrorResult;
fn Type(&self) -> DOMString; fn Type(&self) -> DOMString;
fn SetType(&mut self, _type: DOMString) -> ErrorResult; fn SetType(&self, _type: DOMString) -> ErrorResult;
} }
impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> { impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
@ -49,7 +49,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
0 0
} }
fn SetValue(&mut self, _value: i32) -> ErrorResult { fn SetValue(&self, _value: i32) -> ErrorResult {
Ok(()) Ok(())
} }
@ -57,7 +57,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
"".to_owned() "".to_owned()
} }
fn SetType(&mut self, _type: DOMString) -> ErrorResult { fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(()) Ok(())
} }
} }