Skip to content

Commit

Permalink
Fix new clippy lints
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Burns <[email protected]>
  • Loading branch information
nicoburns committed Jan 31, 2025
1 parent eed349f commit 6949649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/blitz-dom/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ impl PrintTree for BaseDocument {
NodeData::Document => "DOCUMENT",
// NodeData::Doctype { .. } => return "DOCTYPE",
NodeData::Text { .. } => node.node_debug_str().leak(),
NodeData::Comment { .. } => "COMMENT",
NodeData::Comment => "COMMENT",
NodeData::AnonymousBlock(_) => "ANONYMOUS BLOCK",
NodeData::Element(_) => {
let display = match style.display {
Expand Down
2 changes: 1 addition & 1 deletion packages/blitz-dom/src/stylo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl<'a> TNode for BlitzNode<'a> {

fn as_document(&self) -> Option<Self::ConcreteDocument> {
match self.data {
NodeData::Document { .. } => Some(self),
NodeData::Document => Some(self),
_ => None,
}
}
Expand Down

0 comments on commit 6949649

Please sign in to comment.