diff options
author | Cameron Zwarich <zwarich@mozilla.com> | 2014-09-19 01:32:30 -0700 |
---|---|---|
committer | Cameron Zwarich <zwarich@mozilla.com> | 2014-09-20 11:54:10 -0700 |
commit | 2c8d51a37c84fb5de531d00c45de9c0020930b11 (patch) | |
tree | 9d65c2f2141edf9bd8b47bb785b7e948e092f831 /components/script/dom/domexception.rs | |
parent | 2adc594e5d8babaadbe1a4e05a8f7d808313728f (diff) | |
download | servo-2c8d51a37c84fb5de531d00c45de9c0020930b11.tar.gz servo-2c8d51a37c84fb5de531d00c45de9c0020930b11.zip |
More progress in the &JSRef -> JSRef conversion
Change all of the <Class>Methods traits to take `self` instead of
`&self`.
Diffstat (limited to 'components/script/dom/domexception.rs')
-rw-r--r-- | components/script/dom/domexception.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/domexception.rs b/components/script/dom/domexception.rs index 633eaa452f0..ff2993baac8 100644 --- a/components/script/dom/domexception.rs +++ b/components/script/dom/domexception.rs @@ -91,7 +91,7 @@ impl Reflectable for DOMException { impl<'a> DOMExceptionMethods for JSRef<'a, DOMException> { // http://dom.spec.whatwg.org/#dom-domexception-code - fn Code(&self) -> u16 { + fn Code(self) -> u16 { match self.code { // http://dom.spec.whatwg.org/#concept-throw EncodingError => 0, @@ -100,12 +100,12 @@ impl<'a> DOMExceptionMethods for JSRef<'a, DOMException> { } // http://dom.spec.whatwg.org/#error-names-0 - fn Name(&self) -> DOMString { + fn Name(self) -> DOMString { self.code.to_string() } // http://dom.spec.whatwg.org/#error-names-0 - fn Message(&self) -> DOMString { + fn Message(self) -> DOMString { match self.code { IndexSizeError => "The index is not in the allowed range.".to_string(), HierarchyRequestError => "The operation would yield an incorrect node tree.".to_string(), |