Remove needless '&mut self' from HTMLDListElementMethods.

This commit is contained in:
Tetsuharu OHZEKI 2014-05-31 02:57:41 +09:00
parent d6563d01d4
commit 021dd8241f

View file

@ -39,9 +39,9 @@ impl HTMLDListElement {
pub trait HTMLDListElementMethods { pub trait HTMLDListElementMethods {
fn Compact(&self) -> bool; fn Compact(&self) -> bool;
fn SetCompact(&mut self, _compact: bool) -> ErrorResult; fn SetCompact(&self, _compact: bool) -> ErrorResult;
fn Type(&self) -> DOMString; fn Type(&self) -> DOMString;
fn SetType(&mut self, _type: DOMString) -> ErrorResult; fn SetType(&self, _type: DOMString) -> ErrorResult;
} }
impl<'a> HTMLDListElementMethods for JSRef<'a, HTMLDListElement> { impl<'a> HTMLDListElementMethods for JSRef<'a, HTMLDListElement> {
@ -49,7 +49,7 @@ impl<'a> HTMLDListElementMethods for JSRef<'a, HTMLDListElement> {
false false
} }
fn SetCompact(&mut self, _compact: bool) -> ErrorResult { fn SetCompact(&self, _compact: bool) -> ErrorResult {
Ok(()) Ok(())
} }
@ -57,7 +57,7 @@ impl<'a> HTMLDListElementMethods for JSRef<'a, HTMLDListElement> {
"".to_owned() "".to_owned()
} }
fn SetType(&mut self, _type: DOMString) -> ErrorResult { fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(()) Ok(())
} }
} }