Future destructor doesn't need to return nothing from drop

This commit is contained in:
lumi 2025-06-28 05:22:59 +10:00
parent 8a49321110
commit e027623d40
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

View File

@ -100,7 +100,12 @@ unsafe impl<F: Future<Output: IntoFfi> + 'static> Metatype for lua_future<F> {
type Target = Self;
fn build(s: &mut MetatypeBuilder) {
s.metatable_raw("gc", luaify!(|self| self.__drop()));
s.metatable_raw(
"gc",
luaify!(|self| {
self.__drop();
}),
);
}
}