From e027623d401126d048761d6aaf11d2a3bb3766d1 Mon Sep 17 00:00:00 2001 From: luaneko Date: Sat, 28 Jun 2025 05:22:59 +1000 Subject: [PATCH] Future destructor doesn't need to return nothing from drop --- crates/luaffi/src/future.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/luaffi/src/future.rs b/crates/luaffi/src/future.rs index 284e33d..d29414b 100644 --- a/crates/luaffi/src/future.rs +++ b/crates/luaffi/src/future.rs @@ -100,7 +100,12 @@ unsafe impl + 'static> Metatype for lua_future { type Target = Self; fn build(s: &mut MetatypeBuilder) { - s.metatable_raw("gc", luaify!(|self| self.__drop())); + s.metatable_raw( + "gc", + luaify!(|self| { + self.__drop(); + }), + ); } }