Remove needless '&mut self' from HTMLDirectryElementMethods.

This commit is contained in:
Tetsuharu OHZEKI 2014-05-31 02:56:40 +09:00
parent 3092ea2055
commit 1295d75cbf

View file

@ -39,7 +39,7 @@ impl HTMLDirectoryElement {
pub trait HTMLDirectoryElementMethods {
fn Compact(&self) -> bool;
fn SetCompact(&mut self, _compact: bool) -> ErrorResult;
fn SetCompact(&self, _compact: bool) -> ErrorResult;
}
impl<'a> HTMLDirectoryElementMethods for JSRef<'a, HTMLDirectoryElement> {
@ -47,7 +47,7 @@ impl<'a> HTMLDirectoryElementMethods for JSRef<'a, HTMLDirectoryElement> {
false
}
fn SetCompact(&mut self, _compact: bool) -> ErrorResult {
fn SetCompact(&self, _compact: bool) -> ErrorResult {
Ok(())
}
}