From 781e65e5a4444800982da71d97cb6b05d7dca17e Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Thu, 17 Dec 2020 21:56:07 -0800 Subject: 18 --- lib/src/error.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/src') diff --git a/lib/src/error.rs b/lib/src/error.rs index 216df78..4f594b7 100644 --- a/lib/src/error.rs +++ b/lib/src/error.rs @@ -39,3 +39,14 @@ impl From for Error { Error::Parse } } + +impl From, + &str>> for Error +{ + fn from(_: lalrpop_util::ParseError, + &str>) -> Error + { + Error::Parse + } +} + -- cgit 1.4.1