From a4cf30543da30ad132d476d82df47419538643f9 Mon Sep 17 00:00:00 2001 From: Water-Melon Date: Fri, 6 Jun 2025 17:07:36 +0800 Subject: [PATCH] Remove assertion to accommodate the removal of the type method in LuaRocks 3.12.0 --- src/luarocks/build/rust-mlua.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/luarocks/build/rust-mlua.lua b/src/luarocks/build/rust-mlua.lua index 6a4160a..92c6f85 100644 --- a/src/luarocks/build/rust-mlua.lua +++ b/src/luarocks/build/rust-mlua.lua @@ -7,8 +7,6 @@ local util = require("luarocks.util") local mlua = {} function mlua.run(rockspec, no_install) - assert(rockspec:type() == "rockspec") - if not fs.is_tool_available("cargo", "Cargo") then return nil, "'cargo' is not installed.\n" .. "This rock is written in Rust: make sure you have a Rust\n" .. "development environment installed and try again."