From 40a0a1584df7b72e6ddee50184172124652fedf7 Mon Sep 17 00:00:00 2001 From: Lexi Robinson Date: Thu, 11 Apr 2024 09:43:32 +0100 Subject: [PATCH] feat(error): Add impl `ErrorConvert` for `ContextError` --- src/error.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/error.rs b/src/error.rs index d2956126..0e4bf66a 100644 --- a/src/error.rs +++ b/src/error.rs @@ -711,6 +711,13 @@ impl crate::lib::std::fmt::Display for ContextError { } } +impl ErrorConvert> for ContextError { + #[inline] + fn convert(self) -> ContextError { + self + } +} + /// Additional parse context for [`ContextError`] added via [`Parser::context`] #[derive(Clone, Debug, PartialEq, Eq)] #[non_exhaustive]