IVogel 2 rokov pred
rodič
commit
04d87f4fc2
1 zmenil súbory, kde vykonal 1 pridanie a 3 odobranie
  1. 1 3
      src/lib.rs

+ 1 - 3
src/lib.rs

@@ -512,8 +512,6 @@ where
         pushcclosure(state, cleanup_callback::<FUNC>, 0);
         setfield(state, -2, cstr!("__gc"));
         setmetatable(state, -2);
-        pushcclosure(state, call_callback::<FUNC>, 1);
-    } else {
-        pushcclosure(state, call_callback::<FUNC>, 0);
     }
+    pushcclosure(state, call_callback::<FUNC>, 1);
 }