diff --git a/src/types/parse_error.rs b/src/types/parse_error.rs index b1cbf12a..a80255f0 100644 --- a/src/types/parse_error.rs +++ b/src/types/parse_error.rs @@ -51,8 +51,7 @@ impl fmt::Display for LexError { Self::ImproperSymbol(s, d) if d.is_empty() => { write!(f, "Invalid symbol encountered: '{}'", s) } - Self::ImproperSymbol(s, d) if s.is_empty() => f.write_str(d), - Self::ImproperSymbol(s, d) => write!(f, "{}: '{}'", d, s), + Self::ImproperSymbol(.., d) => f.write_str(d), } } }