mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 16:00:10 +00:00
Trim trailing whitespace in error message
This commit is contained in:
parent
2e7bd2581c
commit
72cd7e8dd9
@ -122,7 +122,7 @@ fn render_location(
|
||||
linenum = start.line,
|
||||
colnum = start.column,
|
||||
indent = " ".repeat(start.line.to_string().len()),
|
||||
code = code_line,
|
||||
code = code_line.trim_end(),
|
||||
offset = " ".repeat(start.column),
|
||||
underline = "^".repeat(end.column - start.column),
|
||||
message = err,
|
||||
|
Loading…
Reference in New Issue
Block a user