From f57ccb9098851e84a6abd8dc9a0749ac8d88dfb4 Mon Sep 17 00:00:00 2001 From: Ahmed Sagdati Date: Fri, 3 Feb 2023 22:37:03 +0100 Subject: [PATCH] make error public --- packages/fuels-code-gen/src/error.rs | 4 ++-- packages/fuels-code-gen/src/lib.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/fuels-code-gen/src/error.rs b/packages/fuels-code-gen/src/error.rs index d3d2a6147..924f79c9d 100644 --- a/packages/fuels-code-gen/src/error.rs +++ b/packages/fuels-code-gen/src/error.rs @@ -3,10 +3,10 @@ use std::{ io, }; -pub struct Error(pub(crate) String); +pub struct Error(pub String); impl Error { - pub(crate) fn combine>(self, err: T) -> Self { + pub fn combine>(self, err: T) -> Self { error!("{} {}", self.0, err.into().0) } } diff --git a/packages/fuels-code-gen/src/lib.rs b/packages/fuels-code-gen/src/lib.rs index 4b681f69c..3ccf6d728 100644 --- a/packages/fuels-code-gen/src/lib.rs +++ b/packages/fuels-code-gen/src/lib.rs @@ -1,5 +1,5 @@ -mod error; +pub use program_bindings::*; + +pub mod error; mod program_bindings; pub mod utils; - -pub use program_bindings::*;