@@ -158,9 +158,9 @@ impl Buffer {
fn __gc(state: lua_State) -> Result<i32, Box<dyn std::error::Error>> {
unsafe {
- let _ = lua::Lcheckudata(state, 1, lua::cstr!("cslb"))
+ lua::Lcheckudata(state, 1, lua::cstr!("cslb"))
.cast::<Self>()
- .read();
+ .drop_in_place();
Ok(0)
}
@@ -289,9 +289,9 @@ impl LDb {
- let _ = lua::Lcheckudata(state, 1, lua::cstr!("csldb"))
+ lua::Lcheckudata(state, 1, lua::cstr!("csldb"))
@@ -179,9 +179,9 @@ impl LTree {
- let _ = lua::Lcheckudata(state, 1, lua::cstr!("cslt"))
+ lua::Lcheckudata(state, 1, lua::cstr!("cslt"))