Skip to content

Commit b6aeeed

Browse files
committed
fix: fmt
1 parent 4b5fcfb commit b6aeeed

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

crates/biome_css_analyze/src/lint/correctness/no_unknown_type_selector.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

4648
declare_lint_rule! {

0 commit comments

Comments
 (0)