aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/url.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/url.rs')
-rw-r--r--components/script/dom/url.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/url.rs b/components/script/dom/url.rs
index b7a235dc741..a0370d7f767 100644
--- a/components/script/dom/url.rs
+++ b/components/script/dom/url.rs
@@ -188,7 +188,7 @@ impl URLMethods for URL {
// https://url.spec.whatwg.org/#dom-url-href
fn Stringifier(&self) -> DOMString {
- DOMString(self.Href().0)
+ DOMString::from(self.Href().0)
}
// https://url.spec.whatwg.org/#dom-url-username