Skip to content

Commit

Permalink
reduce visibility to crate public
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
simonsan committed Oct 6, 2024
1 parent 8d610bd commit d2dfd46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/core/src/error/collector.rs
Original file line number Diff line number Diff line change
@@ -6,13 +6,13 @@ use log::{error, info, warn};
/// A rustic issue result
///
/// rustic issue results are used to return a result along with possible issues.
pub type RusticIssueResult<T> = Result<(T, Option<Vec<RusticIssue>>), Vec<RusticError>>;
pub(crate) type RusticIssueResult<T> = Result<(T, Option<Vec<RusticIssue>>), Vec<RusticError>>;

/// A rustic issue
///
/// An issue is a message that can be logged to the user.
#[derive(Debug)]
pub enum RusticIssue {
pub(crate) enum RusticIssue {
/// An error issue, indicating that something went wrong irrecoverably
Error(RusticError),

@@ -49,7 +49,7 @@ impl RusticIssue {
///
/// Warning messages are used to indicate that something might be wrong.
#[derive(Debug, Clone, From)]
pub struct RusticWarning(String);
pub(crate) struct RusticWarning(String);

impl RusticWarning {
pub fn new(message: &str) -> Self {
@@ -67,7 +67,7 @@ impl From<&str> for RusticWarning {
///
/// Info messages are used to provide additional information to the user.
#[derive(Debug, Clone, From)]
pub struct RusticInfo(String);
pub(crate) struct RusticInfo(String);

impl RusticInfo {
pub fn new(message: &str) -> Self {
@@ -82,7 +82,7 @@ impl From<&str> for RusticInfo {
}

#[derive(Debug, Default)]
pub struct RusticIssueCollector {
pub(crate) struct RusticIssueCollector {
/// The errors collected
errors: Option<Vec<RusticError>>,

0 comments on commit d2dfd46

Please sign in to comment.