Skip to content

Commit 1213ea7

Browse files
committed
Fix Lua 5.5 support
1 parent fd602be commit 1213ea7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/luarocks/build/rust-mlua.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ function mlua.run(rockspec, no_install)
7474
local libdir = path.lib_dir(rockspec.name, rockspec.version)
7575

7676
fs.make_dir(dir.dir_name(libdir))
77-
for mod, rustlib_name in pairs(rockspec.build.modules) do
77+
for k, rustlib_name in pairs(rockspec.build.modules) do
7878
-- Make loop variable mutable in Lua 5.5
79-
local mod
79+
local mod = k
8080

8181
-- If `mod` is a number, then it's an array entry
8282
if type(mod) == "number" then

0 commit comments

Comments
 (0)