From 07b7f6bb765416c26b642d49f3db8a873c4c3f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Nerma?= Date: Wed, 6 Dec 2023 14:17:18 +0100 Subject: [PATCH] Allow to construct ReedlineError values from the outside (#676) --- src/result.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/result.rs b/src/result.rs index 3651a5ae..a0691472 100644 --- a/src/result.rs +++ b/src/result.rs @@ -3,7 +3,7 @@ use thiserror::Error; /// non-public (for now) #[derive(Error, Debug)] -pub(crate) enum ReedlineErrorVariants { +pub enum ReedlineErrorVariants { // todo: we should probably be more specific here #[cfg(any(feature = "sqlite", feature = "sqlite-dynlib"))] #[error("error within history database: {0}")] @@ -21,7 +21,7 @@ pub(crate) enum ReedlineErrorVariants { /// separate struct to not expose anything to the public (for now) #[derive(Debug)] -pub struct ReedlineError(pub(crate) ReedlineErrorVariants); +pub struct ReedlineError(pub ReedlineErrorVariants); impl Display for ReedlineError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {