Skip to content

Commit

Permalink
Allow to construct ReedlineError values from the outside (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma authored Dec 6, 2023
1 parent 37714c9 commit 07b7f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")]
Expand All @@ -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 {
Expand Down

0 comments on commit 07b7f6b

Please sign in to comment.