mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
clippy: Fix unneeded return statement warnings (#31776)
This commit is contained in:
parent
d63615354c
commit
15bf32a4e6
19 changed files with 31 additions and 38 deletions
|
@ -537,7 +537,7 @@ impl WindowProxy {
|
|||
return Ok(None);
|
||||
}
|
||||
// Step 17.
|
||||
return Ok(target_document.browsing_context());
|
||||
Ok(target_document.browsing_context())
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name
|
||||
|
@ -840,7 +840,7 @@ fn parse_open_feature_boolean(tokenized_features: &IndexMap<String, String>, nam
|
|||
}
|
||||
}
|
||||
// Step 5
|
||||
return false;
|
||||
false
|
||||
}
|
||||
|
||||
// This is only called from extern functions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue