Skip to content

Commit 1dfc340

Browse files
committed
Format PR 1446 with rustfmt
1 parent c5ebd1f commit 1dfc340

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/dump-syntax/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ fn render_location(
134134
label = start.line.to_string().blue().bold(),
135135
code = code_line.trim_end(),
136136
offset = " ".repeat(start.column),
137-
underline = "^".repeat(end.column.saturating_sub(start.column).max(1)).red().bold(),
137+
underline = "^"
138+
.repeat(end.column.saturating_sub(start.column).max(1))
139+
.red()
140+
.bold(),
138141
message = err.to_string().red(),
139142
)
140143
}

0 commit comments

Comments
 (0)