File tree Expand file tree Collapse file tree
crates/biome_css_analyze/src/lint/correctness Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ fn is_root_in_view_transition_pseudo_element(type_selector: &CssTypeSelector) ->
2727 else {
2828 return false ;
2929 } ;
30-
30+
3131 if type_selector_text != "root" {
3232 return false ;
3333 }
@@ -36,11 +36,13 @@ fn is_root_in_view_transition_pseudo_element(type_selector: &CssTypeSelector) ->
3636 type_selector
3737 . syntax ( )
3838 . grand_parent ( )
39- . and_then ( |gp| CssPseudoElementFunctionSelector :: cast ( gp ) )
39+ . and_then ( CssPseudoElementFunctionSelector :: cast)
4040 . and_then ( |func| func. name ( ) . ok ( ) )
4141 . and_then ( |name| name. value_token ( ) . ok ( ) )
4242 . map ( |token| token. token_text_trimmed ( ) . text ( ) . to_string ( ) )
43- . map_or ( false , |name_text| VIEW_TRANSITION_PSEUDO_ELEMENTS . contains ( & name_text. as_str ( ) ) )
43+ . is_some_and ( |name_text| {
44+ VIEW_TRANSITION_PSEUDO_ELEMENTS . contains ( & name_text. as_str ( ) )
45+ } )
4446}
4547
4648declare_lint_rule ! {
You can’t perform that action at this time.
0 commit comments