From 83df4414c4d30d597a27ce7843a64e043b1e6813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Nerma?= Date: Wed, 6 Dec 2023 00:49:46 +0100 Subject: [PATCH] Allow to construct ReedlineError values from the outside --- 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 {