Remove needless '&mut self' from HTMLOListElementMethods.

This commit is contained in:
Tetsuharu OHZEKI 2014-05-31 01:55:05 +09:00
parent 8ddee938b5
commit 9d3643275a

View file

@ -41,9 +41,9 @@ pub trait HTMLOListElementMethods {
fn Reversed(&self) -> bool;
fn SetReversed(&self, _reversed: bool) -> ErrorResult;
fn Start(&self) -> i32;
fn SetStart(&mut self, _start: i32) -> ErrorResult;
fn SetStart(&self, _start: i32) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&mut self, _type: DOMString) -> ErrorResult;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Compact(&self) -> bool;
fn SetCompact(&self, _compact: bool) -> ErrorResult;
}
@ -61,7 +61,7 @@ impl<'a> HTMLOListElementMethods for JSRef<'a, HTMLOListElement> {
0
}
fn SetStart(&mut self, _start: i32) -> ErrorResult {
fn SetStart(&self, _start: i32) -> ErrorResult {
Ok(())
}
@ -69,7 +69,7 @@ impl<'a> HTMLOListElementMethods for JSRef<'a, HTMLOListElement> {
"".to_owned()
}
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}