chore: Made all test struct public to avoid unused warnings
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use lua_typed::Typed;
|
||||
|
||||
#[derive(Typed)]
|
||||
enum Test {
|
||||
pub enum Test {
|
||||
A,
|
||||
B(String),
|
||||
C(u8),
|
||||
|
||||
@@ -2,6 +2,6 @@ use lua_typed::Typed;
|
||||
|
||||
#[derive(Typed)]
|
||||
#[typed(as = "")]
|
||||
struct A;
|
||||
pub struct A;
|
||||
|
||||
fn main() {}
|
||||
|
||||
@@ -2,7 +2,7 @@ use lua_typed::Typed;
|
||||
|
||||
#[derive(Typed)]
|
||||
#[serde(rename_all = "invalid/case")]
|
||||
enum Test {
|
||||
pub enum Test {
|
||||
HelloWorld,
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use lua_typed::Typed;
|
||||
|
||||
#[derive(Typed)]
|
||||
enum Test {
|
||||
pub enum Test {
|
||||
A,
|
||||
D { test: f32 },
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ use lua_typed::Typed;
|
||||
|
||||
#[derive(Typed)]
|
||||
#[serde(tag = "tag")]
|
||||
enum Test {
|
||||
pub enum Test {
|
||||
A,
|
||||
B(String),
|
||||
C(u8),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use lua_typed::Typed;
|
||||
|
||||
#[derive(Typed)]
|
||||
union MyUnion {
|
||||
pub union MyUnion {
|
||||
f1: u32,
|
||||
f2: f32,
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
| ^^^^^
|
||||
|
||||
@@ -2,6 +2,6 @@ use lua_typed::Typed;
|
||||
|
||||
#[derive(Typed)]
|
||||
#[typed(cool)]
|
||||
struct A;
|
||||
pub struct A;
|
||||
|
||||
fn main() {}
|
||||
|
||||
Reference in New Issue
Block a user