removes whitespace in error message

This commit is contained in:
damirka 2021-04-14 20:53:43 +03:00
parent b6c5f4d60f
commit 717fa49dbf

View File

@ -79,7 +79,7 @@ impl fmt::Display for FormattedError {
write!(
f,
"{indent }--> {path}: {line_start}:{start}\n\
"{indent }--> {path}:{line_start}:{start}\n\
{indent } |\n",
indent = INDENT,
path = &*self.path,
@ -130,7 +130,7 @@ fn test_error() {
assert_eq!(
err.to_string(),
vec![
" --> file.leo: 2:9",
" --> file.leo:2:9",
" |",
" 2 | let a = x;",
" | ^",