From d2dfd468cd490867aeb8e29f7a374e7ad15038cd Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Sun, 6 Oct 2024 23:26:57 +0200 Subject: [PATCH] reduce visibility to crate public Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com> --- crates/core/src/error/collector.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/core/src/error/collector.rs b/crates/core/src/error/collector.rs index 56e48ea0..5e1f194a 100644 --- a/crates/core/src/error/collector.rs +++ b/crates/core/src/error/collector.rs @@ -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 = Result<(T, Option>), Vec>; +pub(crate) type RusticIssueResult = Result<(T, Option>), Vec>; /// 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>,