mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove redundant url clones
They are now redundant since now document.url() returns a struct rather than a reference.
This commit is contained in:
parent
fb6cc15208
commit
91f3d4f474
13 changed files with 22 additions and 22 deletions
|
@ -135,7 +135,7 @@ macro_rules! make_string_or_document_url_getter(
|
|||
|
||||
if val.is_empty() {
|
||||
let doc = document_from_node(self);
|
||||
DOMString::from(doc.url().clone().into_string())
|
||||
DOMString::from(doc.url().into_string())
|
||||
} else {
|
||||
val
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue