Remove needless '&mut self' from HTMLAreaElementMethods.

This commit is contained in:
Tetsuharu OHZEKI 2014-05-31 02:34:39 +09:00
parent 4b40fbabc9
commit 41cd902ee0

View file

@ -53,7 +53,7 @@ pub trait HTMLAreaElementMethods {
fn Ping(&self) -> DOMString; fn Ping(&self) -> DOMString;
fn SetPing(&self, _ping: DOMString) -> ErrorResult; fn SetPing(&self, _ping: DOMString) -> ErrorResult;
fn NoHref(&self) -> bool; fn NoHref(&self) -> bool;
fn SetNoHref(&mut self, _no_href: bool) -> ErrorResult; fn SetNoHref(&self, _no_href: bool) -> ErrorResult;
} }
impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> { impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
@ -117,7 +117,7 @@ impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
false false
} }
fn SetNoHref(&mut self, _no_href: bool) -> ErrorResult { fn SetNoHref(&self, _no_href: bool) -> ErrorResult {
Ok(()) Ok(())
} }
} }