From c770a54517a31cff892da28d21d5260983cb617d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20H=C3=B6lting?= <87192362+moritz-hoelting@users.noreply.github.com> Date: Sat, 6 Apr 2024 14:42:44 +0200 Subject: [PATCH] Re-export shulkerbox module and update error message in transpiler --- src/lib.rs | 2 ++ src/transpile/transpiler.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 494be49..4b58baa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,6 +12,8 @@ #![warn(missing_docs, clippy::all, clippy::pedantic)] #![allow(clippy::missing_panics_doc, clippy::missing_const_for_fn)] +pub use shulkerbox; + pub mod base; pub mod lexical; pub mod syntax; diff --git a/src/transpile/transpiler.rs b/src/transpile/transpiler.rs index ba12f37..8552879 100644 --- a/src/transpile/transpiler.rs +++ b/src/transpile/transpiler.rs @@ -52,7 +52,7 @@ impl Transpiler { /// Transpiles the given program. /// /// # Errors - /// - [`TranspileError::MissingMainFunction`] If the main function is missing. + /// - [`TranspileError::MissingFunctionDeclaration`] If a called function is missing pub fn transpile( &mut self, program: &Program,