From 8bb9636b3448d1896530694d986c7470503c9995 Mon Sep 17 00:00:00 2001 From: cat_or_not <41955154+catornot@users.noreply.github.com> Date: Tue, 23 Apr 2024 12:53:49 -0400 Subject: [PATCH] don't pushnull for () --- src/high/squirrel_traits.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/high/squirrel_traits.rs b/src/high/squirrel_traits.rs index cee784a..8187af1 100644 --- a/src/high/squirrel_traits.rs +++ b/src/high/squirrel_traits.rs @@ -78,9 +78,7 @@ impl PushToSquirrelVm for () { const DEFAULT_RESULT: SQRESULT = SQRESULT::SQRESULT_NULL; #[inline] - fn push_to_sqvm(self, sqvm: NonNull, sqfunctions: &SquirrelFunctions) { - unsafe { (sqfunctions.sq_pushnull)(sqvm.as_ptr()) }; - } + fn push_to_sqvm(self, sqvm: NonNull, sqfunctions: &SquirrelFunctions) {} } // Return Trait