diff --git a/src/transpile/lua.rs b/src/transpile/lua.rs index 172ee87..3c2e786 100644 --- a/src/transpile/lua.rs +++ b/src/transpile/lua.rs @@ -73,7 +73,7 @@ mod enabled { #[cfg(not(feature = "lua"))] mod disabled { use crate::{ - base::Handler, + base::{self, Handler}, syntax::syntax_tree::expression::LuaCode, transpile::error::{TranspileError, TranspileResult}, }; @@ -84,10 +84,7 @@ mod disabled { /// /// # Errors /// - If Lua code evaluation is disabled. - pub fn eval_string( - &self, - handler: &impl Handler, - ) -> TranspileResult { + pub fn eval_string(&self, handler: &impl Handler) -> TranspileResult { handler.receive(TranspileError::LuaDisabled); tracing::error!("Lua code evaluation is disabled"); Err(TranspileError::LuaDisabled)