Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jan 7, 2025
1 parent 6264c73 commit e252993
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/biome_html_formatter/src/html/auxiliary/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,15 @@ impl FormatNodeRule<HtmlElement> for FormatHtmlElement {
|| opening_element
.r_angle_token()
.ok()
.map(|tok| tok.has_trailing_whitespace())
.unwrap_or_default();
.is_some_and(|tok| tok.has_trailing_whitespace());
let content_has_trailing_whitespace = children
.syntax()
.last_token()
.is_some_and(|tok| tok.has_trailing_whitespace())
|| closing_element
.l_angle_token()
.ok()
.map(|tok| tok.has_leading_whitespace_or_newline())
.unwrap_or_default();
.is_some_and(|tok| tok.has_leading_whitespace_or_newline());

// "Borrowing" in this context refers to tokens in nodes that would normally be
// formatted by that node's formatter, but are instead formatted by a sibling
Expand Down

0 comments on commit e252993

Please sign in to comment.