pub enum Error{ Lua(mlua::Error), } pub fn run(source:String,context:&mut crate::context::Context)->Result<(),Error>{ let lua=mlua::Lua::new(); lua.sandbox(true).map_err(Error::Lua)?; lua.load(source).exec().map_err(Error::Lua)?; Ok(()) }