Skip to content

Commit 9f762e2

Browse files
wagenetclaude
andcommitted
fix(html_formatter): use method call for separator access
Changed separator access from field reference (&element.trailing_separator) to method call (element.trailing_separator()) for consistency with other formatters throughout the codebase. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 4d4b99a commit 9f762e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/biome_html_formatter/src/js/lists/path_segment_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ impl FormatRule<GlimmerPathSegmentList> for FormatGlimmerPathSegmentList {
99
// For separated lists, format each element and its separator
1010
for element in node.elements() {
1111
crate::prelude::write!(f, [element.node.format()])?;
12-
if let Ok(Some(sep)) = &element.trailing_separator {
12+
if let Ok(Some(sep)) = element.trailing_separator() {
1313
crate::prelude::write!(f, [sep.format()])?;
1414
}
1515
}

0 commit comments

Comments
 (0)