mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -208,7 +208,7 @@ impl AttrValue {
|
|||
AttrValue::Atom(value)
|
||||
}
|
||||
|
||||
pub fn from_url(base: &ServoUrl, url: String) -> AttrValue {
|
||||
pub fn from_url(base: ServoUrl, url: String) -> AttrValue {
|
||||
let joined = base.join(&url).ok();
|
||||
AttrValue::Url(url, joined)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue