integrate CodegenError to compiler-core::Error

This commit is contained in:
Jeong YunWon 2022-08-22 18:38:55 +09:00
parent 2b7bf79d29
commit 7fcc18daea
2 changed files with 21 additions and 1 deletions

View file

@ -193,7 +193,7 @@ impl ParseError {
impl fmt::Display for ParseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.location.fmt_with(f, &self.error)
self.0.fmt(f)
}
}