Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jul 28, 2024
1 parent 20b9beb commit a9edf26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/dom/src/stylo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,7 @@ impl<'a> selectors::Element for BlitzNode<'a> {
}

fn is_pseudo_element(&self) -> bool {
match self.raw_dom_data {
NodeData::AnonymousBlock(_) => true,
_ => false,
}
matches!(self.raw_dom_data, NodeData::AnonymousBlock(_))
}

// These methods are implemented naively since we only threaded real nodes and not fake nodes
Expand Down

0 comments on commit a9edf26

Please sign in to comment.