From ab3f173115fce8cd769c6f513560da8a57bc8df6 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sun, 17 May 2026 22:39:47 +0800 Subject: Add repr(u8) to bool and NextProcess enums --- mingling/src/parser/picker/bools.rs | 2 ++ mingling_core/src/any.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/mingling/src/parser/picker/bools.rs b/mingling/src/parser/picker/bools.rs index 80e6d5b..aa2335a 100644 --- a/mingling/src/parser/picker/bools.rs +++ b/mingling/src/parser/picker/bools.rs @@ -1,6 +1,7 @@ use crate::parser::Pickable; #[derive(Debug, Default)] +#[repr(u8)] pub enum Yes { Yes, #[default] @@ -55,6 +56,7 @@ impl Pickable for Yes { } #[derive(Debug, Default)] +#[repr(u8)] pub enum True { True, #[default] diff --git a/mingling_core/src/any.rs b/mingling_core/src/any.rs index b8ff7b2..3dedea4 100644 --- a/mingling_core/src/any.rs +++ b/mingling_core/src/any.rs @@ -118,6 +118,7 @@ pub enum ChainProcess { /// - `Chain`: Continue execution to the next chain /// - `Renderer`: Send output to renderer and end execution #[derive(Debug, PartialEq, Eq)] +#[repr(u8)] pub enum NextProcess { Chain, Renderer, -- cgit