(&self, code: &str)
| 31 | } |
| 32 | |
| 33 | pub fn execute_string(&self, code: &str) -> anyhow::Result<()> { |
| 34 | self.lua |
| 35 | .load(code) |
| 36 | .exec() |
| 37 | .into_anyhow() |
| 38 | .context("Failed to execute Lua string")?; |
| 39 | Ok(()) |
| 40 | } |
| 41 | |
| 42 | pub fn set_package_path(&self, path: &str) -> anyhow::Result<()> { |
| 43 | let package: mlua::Table = self.lua.globals().get("package").into_anyhow()?; |
nothing calls this directly
no test coverage detected