Skip to content

Commit

Permalink
Format PR 1446 with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 4, 2023
1 parent c5ebd1f commit 1dfc340
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/dump-syntax/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ fn render_location(
label = start.line.to_string().blue().bold(),
code = code_line.trim_end(),
offset = " ".repeat(start.column),
underline = "^".repeat(end.column.saturating_sub(start.column).max(1)).red().bold(),
underline = "^"
.repeat(end.column.saturating_sub(start.column).max(1))
.red()
.bold(),
message = err.to_string().red(),
)
}
Expand Down

0 comments on commit 1dfc340

Please sign in to comment.