From cbb47840e44abe0bddcc963fdab84582b3a32bce Mon Sep 17 00:00:00 2001 From: luaneko Date: Wed, 25 Jun 2025 23:16:42 +1000 Subject: [PATCH] Alias stub types to rust types where possible --- crates/luaffi/src/internal.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/luaffi/src/internal.rs b/crates/luaffi/src/internal.rs index b8cce11..70e5cae 100644 --- a/crates/luaffi/src/internal.rs +++ b/crates/luaffi/src/internal.rs @@ -9,12 +9,12 @@ use std::{ #[allow(non_camel_case_types)] pub mod stub_types { pub struct any; - pub struct nil; - pub struct boolean; - pub struct lightuserdata; - pub struct number; - pub struct integer; - pub struct string; + pub type nil = (); + pub type boolean = bool; + pub type lightuserdata = *mut (); + pub type number = f64; + pub type integer = i64; + pub type string = &'static str; pub struct table; pub struct function; pub struct userdata;