mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fixe some clippy warnings (#32131)
This commit is contained in:
parent
d490fdf83c
commit
5a4c81f841
5 changed files with 32 additions and 36 deletions
|
@ -743,8 +743,10 @@ impl Document {
|
|||
.parent()
|
||||
.and_then(|parent| parent.document())
|
||||
.map(|document| document.base_url());
|
||||
if document_url.as_str() == "about:srcdoc" && container_base_url.is_some() {
|
||||
return container_base_url.unwrap();
|
||||
if document_url.as_str() == "about:srcdoc" {
|
||||
if let Some(base_url) = container_base_url {
|
||||
return base_url;
|
||||
}
|
||||
}
|
||||
// Step 2: If document's URL is about:blank, and document's browsing
|
||||
// context's creator base URL is non-null, then return that creator base URL.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue