mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: Fix warnings in components/script
& components/webgpu
(#33653)
* clippy: Fix warnings in component/script & component/webgpu Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * fix: use same variable name in if-let block Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
ad8ba49d2c
commit
0a5540f6a4
3 changed files with 9 additions and 10 deletions
|
@ -534,7 +534,9 @@ impl HTMLElementMethods for HTMLElement {
|
|||
}
|
||||
|
||||
// Step 8: If previous is a Text node, then merge with the next text node given previous.
|
||||
previous.map(Self::merge_with_the_next_text_node);
|
||||
if let Some(previous) = previous {
|
||||
Self::merge_with_the_next_text_node(previous)
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue