Future destructor doesn't need to return nothing from drop
This commit is contained in:
parent
8a49321110
commit
e027623d40
@ -100,7 +100,12 @@ unsafe impl<F: Future<Output: IntoFfi> + 'static> Metatype for lua_future<F> {
|
|||||||
type Target = Self;
|
type Target = Self;
|
||||||
|
|
||||||
fn build(s: &mut MetatypeBuilder) {
|
fn build(s: &mut MetatypeBuilder) {
|
||||||
s.metatable_raw("gc", luaify!(|self| self.__drop()));
|
s.metatable_raw(
|
||||||
|
"gc",
|
||||||
|
luaify!(|self| {
|
||||||
|
self.__drop();
|
||||||
|
}),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user