mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update rustfmt to the 2024 style edition (#35764)
* Use 2024 style edition Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Reformat all code Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
6300e820b4
commit
3d320fa96a
603 changed files with 1739 additions and 1648 deletions
|
@ -159,11 +159,7 @@ impl CSSRuleMethods<crate::DomTypeHolder> for CSSRule {
|
|||
let rule_type = self.as_specific().ty() as u16;
|
||||
// Per https://drafts.csswg.org/cssom/#dom-cssrule-type for constants > 15
|
||||
// we return 0.
|
||||
if rule_type > 15 {
|
||||
0
|
||||
} else {
|
||||
rule_type
|
||||
}
|
||||
if rule_type > 15 { 0 } else { rule_type }
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/cssom/#dom-cssrule-parentstylesheet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue