mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
clippy: Fix option_map_unit_fn warnings (#31906)
This commit is contained in:
parent
a5bcae212a
commit
da76ebabe9
11 changed files with 43 additions and 30 deletions
|
@ -1259,7 +1259,9 @@ impl TreeSink for Sink {
|
|||
|
||||
fn mark_script_already_started(&mut self, node: &Dom<Node>) {
|
||||
let script = node.downcast::<HTMLScriptElement>();
|
||||
script.map(|script| script.set_already_started(true));
|
||||
if let Some(script) = script {
|
||||
script.set_already_started(true)
|
||||
}
|
||||
}
|
||||
|
||||
fn complete_script(&mut self, node: &Dom<Node>) -> NextParserState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue