summaryrefslogtreecommitdiff
path: root/src/luau.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2022-12-19 14:59:21 +0000
committerAlex Orlenko <zxteam@protonmail.com>2022-12-19 21:12:36 +0000
commit56abc4a700b246dcd4b6c0b0a818779577067cc2 (patch)
treec3583a386411a98d94d3b3f9b080d71370b355f9 /src/luau.rs
parent9b4e3a1598bd95908b33c0a4052fa9563523cee6 (diff)
downloadmlua-56abc4a700b246dcd4b6c0b0a818779577067cc2.zip
Refactor `AsChunk` trait
Diffstat (limited to 'src/luau.rs')
-rw-r--r--src/luau.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luau.rs b/src/luau.rs
index 7dab235..807a7f1 100644
--- a/src/luau.rs
+++ b/src/luau.rs
@@ -106,7 +106,7 @@ fn lua_require(lua: &Lua, name: Option<StdString>) -> Result<Value> {
let value = lua
.load(&source)
- .set_name(&format!("={}", source_name))?
+ .set_name(&format!("={}", source_name))
.set_mode(ChunkMode::Text)
.call::<_, Value>(())?;