From db76dbf5ca1daea6a65b35deb4f4501e5aa481f9 Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Sat, 31 May 2014 03:06:11 +0900 Subject: [PATCH] Remove needless '&mut self' from HTMLLIElementMethods. --- src/components/script/dom/htmllielement.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/script/dom/htmllielement.rs b/src/components/script/dom/htmllielement.rs index 0f8aabbfa10..ab2665b76ee 100644 --- a/src/components/script/dom/htmllielement.rs +++ b/src/components/script/dom/htmllielement.rs @@ -39,9 +39,9 @@ impl HTMLLIElement { pub trait HTMLLIElementMethods { fn Value(&self) -> i32; - fn SetValue(&mut self, _value: i32) -> ErrorResult; + fn SetValue(&self, _value: i32) -> ErrorResult; fn Type(&self) -> DOMString; - fn SetType(&mut self, _type: DOMString) -> ErrorResult; + fn SetType(&self, _type: DOMString) -> ErrorResult; } impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> { @@ -49,7 +49,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> { 0 } - fn SetValue(&mut self, _value: i32) -> ErrorResult { + fn SetValue(&self, _value: i32) -> ErrorResult { Ok(()) } @@ -57,7 +57,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> { "".to_owned() } - fn SetType(&mut self, _type: DOMString) -> ErrorResult { + fn SetType(&self, _type: DOMString) -> ErrorResult { Ok(()) } }