chore: Made all test struct public to avoid unused warnings

This commit is contained in:
2025-09-17 01:40:11 +02:00
parent ab8556a13c
commit a5f4b67216
9 changed files with 12 additions and 12 deletions

View File

@@ -2,10 +2,10 @@ use lua_typed::Typed;
#[derive(Typed)]
#[typed(as = "Lua")]
struct Rust;
pub struct Rust;
#[derive(Typed)]
struct Other {
pub struct Other {
pub rust: Rust,
}

View File

@@ -1,7 +1,7 @@
use lua_typed::Typed;
#[derive(Typed)]
enum Test {
pub enum Test {
A,
B(String),
C(u8),

View File

@@ -2,6 +2,6 @@ use lua_typed::Typed;
#[derive(Typed)]
#[typed(as = "")]
struct A;
pub struct A;
fn main() {}

View File

@@ -2,7 +2,7 @@ use lua_typed::Typed;
#[derive(Typed)]
#[serde(rename_all = "invalid/case")]
enum Test {
pub enum Test {
HelloWorld,
}

View File

@@ -1,7 +1,7 @@
use lua_typed::Typed;
#[derive(Typed)]
enum Test {
pub enum Test {
A,
D { test: f32 },
}

View File

@@ -2,7 +2,7 @@ use lua_typed::Typed;
#[derive(Typed)]
#[serde(tag = "tag")]
enum Test {
pub enum Test {
A,
B(String),
C(u8),

View File

@@ -1,7 +1,7 @@
use lua_typed::Typed;
#[derive(Typed)]
union MyUnion {
pub union MyUnion {
f1: u32,
f2: f32,
}

View File

@@ -1,5 +1,5 @@
error: Unions are not supported by Typed
--> tests/ui/union.rs:4:1
--> tests/ui/union.rs:4:5
|
4 | union MyUnion {
| ^^^^^
4 | pub union MyUnion {
| ^^^^^

View File

@@ -2,6 +2,6 @@ use lua_typed::Typed;
#[derive(Typed)]
#[typed(cool)]
struct A;
pub struct A;
fn main() {}