diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2022-12-19 14:59:21 +0000 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2022-12-19 21:12:36 +0000 |
commit | 56abc4a700b246dcd4b6c0b0a818779577067cc2 (patch) | |
tree | c3583a386411a98d94d3b3f9b080d71370b355f9 /src/luau.rs | |
parent | 9b4e3a1598bd95908b33c0a4052fa9563523cee6 (diff) | |
download | mlua-56abc4a700b246dcd4b6c0b0a818779577067cc2.zip |
Refactor `AsChunk` trait
Diffstat (limited to 'src/luau.rs')
-rw-r--r-- | src/luau.rs | 2 |
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>(())?; |