aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/url.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-08-27 22:15:54 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-08-27 22:27:43 +0200
commit709d347872e37ab2358e057d24557b9977238ecd (patch)
tree89f726bf207325eea8a8ca316f6d77d8c88432cb /components/script/dom/url.rs
parent856fda7f2e3fe4abd6de247e8bdaf8cedf3764c2 (diff)
downloadservo-709d347872e37ab2358e057d24557b9977238ecd.tar.gz
servo-709d347872e37ab2358e057d24557b9977238ecd.zip
Make the traits for the IDL interfaces take &self
Diffstat (limited to 'components/script/dom/url.rs')
-rw-r--r--components/script/dom/url.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/components/script/dom/url.rs b/components/script/dom/url.rs
index d8db8329ab1..ec44fe2fdf9 100644
--- a/components/script/dom/url.rs
+++ b/components/script/dom/url.rs
@@ -84,59 +84,59 @@ impl URL {
}
}
-impl<'a> URLMethods for &'a URL {
+impl URLMethods for URL {
// https://url.spec.whatwg.org/#dom-urlutils-hash
- fn Hash(self) -> USVString {
+ fn Hash(&self) -> USVString {
UrlHelper::Hash(&self.url)
}
// https://url.spec.whatwg.org/#dom-urlutils-host
- fn Host(self) -> USVString {
+ fn Host(&self) -> USVString {
UrlHelper::Host(&self.url)
}
// https://url.spec.whatwg.org/#dom-urlutils-hostname
- fn Hostname(self) -> USVString {
+ fn Hostname(&self) -> USVString {
UrlHelper::Hostname(&self.url)
}
// https://url.spec.whatwg.org/#dom-urlutils-href
- fn Href(self) -> USVString {
+ fn Href(&self) -> USVString {
UrlHelper::Href(&self.url)
}
// https://url.spec.whatwg.org/#dom-urlutils-password
- fn Password(self) -> USVString {
+ fn Password(&self) -> USVString {
UrlHelper::Password(&self.url)
}
// https://url.spec.whatwg.org/#dom-urlutils-pathname
- fn Pathname(self) -> USVString {
+ fn Pathname(&self) -> USVString {
UrlHelper::Pathname(&self.url)
}
// https://url.spec.whatwg.org/#dom-urlutils-port
- fn Port(self) -> USVString {
+ fn Port(&self) -> USVString {
UrlHelper::Port(&self.url)
}
// https://url.spec.whatwg.org/#dom-urlutils-protocol
- fn Protocol(self) -> USVString {
+ fn Protocol(&self) -> USVString {
UrlHelper::Protocol(&self.url)
}
// https://url.spec.whatwg.org/#dom-urlutils-search
- fn Search(self) -> USVString {
+ fn Search(&self) -> USVString {
UrlHelper::Search(&self.url)
}
// https://url.spec.whatwg.org/#URLUtils-stringification-behavior
- fn Stringifier(self) -> DOMString {
+ fn Stringifier(&self) -> DOMString {
self.Href().0
}
// https://url.spec.whatwg.org/#dom-urlutils-username
- fn Username(self) -> USVString {
+ fn Username(&self) -> USVString {
UrlHelper::Username(&self.url)
}
}