From e01c71f9a7f291a2ac371790911a11e7d5d923ef Mon Sep 17 00:00:00 2001 From: John Date: Wed, 28 Feb 2024 05:00:39 -0600 Subject: [PATCH] lexer: implement std::error:;Error for Error (whoops!) --- libconlang/src/lexer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libconlang/src/lexer.rs b/libconlang/src/lexer.rs index acaa726..5193539 100644 --- a/libconlang/src/lexer.rs +++ b/libconlang/src/lexer.rs @@ -515,6 +515,7 @@ pub mod error { })* } } + impl std::error::Error for Error {} impl Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{}:{}: {}", self.line, self.col, self.reason)