From 7d7bdd70226327506b9e45fcdb5a3b28c9e64908 Mon Sep 17 00:00:00 2001 From: bogay Date: Sun, 8 Oct 2023 20:16:48 +0800 Subject: [PATCH] test: derive repr for enum --- test/src/test_export_enum.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/src/test_export_enum.rs b/test/src/test_export_enum.rs index b40cb8698..a738cdd28 100644 --- a/test/src/test_export_enum.rs +++ b/test/src/test_export_enum.rs @@ -1,6 +1,8 @@ use gdnative::prelude::*; #[derive(Debug, PartialEq, Clone, Copy, Export, ToVariant, FromVariant)] +#[variant(enum = "repr")] +#[repr(i32)] enum Dir { Up = 1, Down = -1,