diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-06-04 00:57:23 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-06-04 00:57:23 +0900 |
commit | dc0164071e158639f002060e900dc321ca11110d (patch) | |
tree | ac52227348a9d1f904ea6de99ebf29bbed0da9ee /src | |
parent | 884346030c64a9c0784a7ac400a4053d4c754cfb (diff) | |
download | servo-dc0164071e158639f002060e900dc321ca11110d.tar.gz servo-dc0164071e158639f002060e900dc321ca11110d.zip |
Remove needless '&mut self' from DocumentMethods.
Diffstat (limited to 'src')
-rw-r--r-- | src/components/script/dom/document.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs index 56e0474775d..8672da19b55 100644 --- a/src/components/script/dom/document.rs +++ b/src/components/script/dom/document.rs @@ -291,7 +291,7 @@ impl<'a> PrivateDocumentHelpers for JSRef<'a, Document> { } pub trait DocumentMethods { - fn Implementation(&mut self) -> Temporary<DOMImplementation>; + fn Implementation(&self) -> Temporary<DOMImplementation>; fn URL(&self) -> DOMString; fn DocumentURI(&self) -> DOMString; fn CompatMode(&self) -> DOMString; @@ -334,7 +334,7 @@ pub trait DocumentMethods { impl<'a> DocumentMethods for JSRef<'a, Document> { // http://dom.spec.whatwg.org/#dom-document-implementation - fn Implementation(&mut self) -> Temporary<DOMImplementation> { + fn Implementation(&self) -> Temporary<DOMImplementation> { if self.implementation.get().is_none() { let window = self.window.root(); self.implementation.assign(Some(DOMImplementation::new(&*window))); |