diff options
author | Pu Xingyu <pu.stshine@gmail.com> | 2016-11-18 12:39:22 +0800 |
---|---|---|
committer | Pu Xingyu <pu.stshine@gmail.com> | 2016-11-18 12:39:22 +0800 |
commit | 91f3d4f4749a1dd53d665f741be85559b820cbe7 (patch) | |
tree | 0170b480610acde6aa39867bdf581c4d6d352022 /components/script/dom/node.rs | |
parent | fb6cc15208690acb4c66445b71f2ff8d1dcfcf73 (diff) | |
download | servo-91f3d4f4749a1dd53d665f741be85559b820cbe7.tar.gz servo-91f3d4f4749a1dd53d665f741be85559b820cbe7.zip |
Remove redundant url clones
They are now redundant since now document.url() returns a struct rather
than a reference.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 8d009bc2f98..883a87a3f16 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -1751,7 +1751,7 @@ impl Node { let window = document.window(); let loader = DocumentLoader::new(&*document.loader()); let document = Document::new(window, None, - Some((*document.url()).clone()), + Some(document.url()), is_html_doc, None, None, DocumentSource::NotFromParser, loader, None, None); |