From a760beabc1622b801d182b14c849337a907f6930 Mon Sep 17 00:00:00 2001 From: luaneko Date: Fri, 27 Jun 2025 23:04:05 +1000 Subject: [PATCH] Extern "Lua" functions should be able to act as constructors --- crates/luaffi_impl/src/metatype.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/luaffi_impl/src/metatype.rs b/crates/luaffi_impl/src/metatype.rs index 7959d84..c18fe57 100644 --- a/crates/luaffi_impl/src/metatype.rs +++ b/crates/luaffi_impl/src/metatype.rs @@ -688,11 +688,6 @@ fn parse_lua_function_attrs(attrs: &mut Vec) -> Result syn_error!(attr, r#"cannot be applied to a lua function"#), - _ => {} - } - parsed.metamethod = Some(method); attrs.remove(i); } else {