mirror of
https://github.com/servo/servo.git
synced 2025-07-26 00:30:22 +01:00
Avoid some clones.
This commit is contained in:
parent
78ae9a5da0
commit
703d018f23
5 changed files with 13 additions and 17 deletions
|
@ -144,7 +144,7 @@ impl HTMLIFrameElement {
|
|||
|
||||
pub fn process_the_iframe_attributes(&self) {
|
||||
let url = match self.get_url() {
|
||||
Some(url) => url.clone(),
|
||||
Some(url) => url,
|
||||
None => Url::parse("about:blank").unwrap(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue