diff options
author | bors-servo <release+servo@mozilla.com> | 2014-05-30 14:45:57 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-05-30 14:45:57 -0400 |
commit | d7cac61d9cc8e4e9f4ef73aeac21075cc46c62b4 (patch) | |
tree | f5568f02d189cf0c1f927f87e41a1a0739b91461 /src/components/script/dom/htmlhrelement.rs | |
parent | da896b8299620ad31bcdc84d931ecdcb3efd6979 (diff) | |
parent | af653d1ce0128d10ec9869fcf5c0bccecdcf64c6 (diff) | |
download | servo-d7cac61d9cc8e4e9f4ef73aeac21075cc46c62b4.tar.gz servo-d7cac61d9cc8e4e9f4ef73aeac21075cc46c62b4.zip |
auto merge of #2520 : saneyuki/servo/mut, r=Ms2ger
Related #2514
- This removes needless `&mut self`s from some DOM type method simply.
- This doesn't include some DOM Types which have basis method called from other types (e.g. `Element`). We still have to need to open their changes.
- This does not include to remove an implicit `deref_mut()`.
Diffstat (limited to 'src/components/script/dom/htmlhrelement.rs')
-rw-r--r-- | src/components/script/dom/htmlhrelement.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/script/dom/htmlhrelement.rs b/src/components/script/dom/htmlhrelement.rs index 98829339845..89d45c78ae7 100644 --- a/src/components/script/dom/htmlhrelement.rs +++ b/src/components/script/dom/htmlhrelement.rs @@ -39,15 +39,15 @@ impl HTMLHRElement { pub trait HTMLHRElementMethods { fn Align(&self) -> DOMString; - fn SetAlign(&mut self, _align: DOMString) -> ErrorResult; + fn SetAlign(&self, _align: DOMString) -> ErrorResult; fn Color(&self) -> DOMString; - fn SetColor(&mut self, _color: DOMString) -> ErrorResult; + fn SetColor(&self, _color: DOMString) -> ErrorResult; fn NoShade(&self) -> bool; fn SetNoShade(&self, _no_shade: bool) -> ErrorResult; fn Size(&self) -> DOMString; - fn SetSize(&mut self, _size: DOMString) -> ErrorResult; + fn SetSize(&self, _size: DOMString) -> ErrorResult; fn Width(&self) -> DOMString; - fn SetWidth(&mut self, _width: DOMString) -> ErrorResult; + fn SetWidth(&self, _width: DOMString) -> ErrorResult; } impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> { @@ -55,7 +55,7 @@ impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> { "".to_owned() } - fn SetAlign(&mut self, _align: DOMString) -> ErrorResult { + fn SetAlign(&self, _align: DOMString) -> ErrorResult { Ok(()) } @@ -63,7 +63,7 @@ impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> { "".to_owned() } - fn SetColor(&mut self, _color: DOMString) -> ErrorResult { + fn SetColor(&self, _color: DOMString) -> ErrorResult { Ok(()) } @@ -79,7 +79,7 @@ impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> { "".to_owned() } - fn SetSize(&mut self, _size: DOMString) -> ErrorResult { + fn SetSize(&self, _size: DOMString) -> ErrorResult { Ok(()) } @@ -87,7 +87,7 @@ impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> { "".to_owned() } - fn SetWidth(&mut self, _width: DOMString) -> ErrorResult { + fn SetWidth(&self, _width: DOMString) -> ErrorResult { Ok(()) } } |