IVogel před 2 roky
rodič
revize
04d87f4fc2
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  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);
 }