From 91ab6161a39122143f172828b4a8699c393e7a8a Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 14 Aug 2026 03:34:04 +0800 Subject: chore: implement Debug for MockProgramCollect --- mingling_core/src/program/collection/mock.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mingling_core/src') diff --git a/mingling_core/src/program/collection/mock.rs b/mingling_core/src/program/collection/mock.rs index 568d141..c22ff95 100644 --- a/mingling_core/src/program/collection/mock.rs +++ b/mingling_core/src/program/collection/mock.rs @@ -24,6 +24,15 @@ pub enum MockProgramCollect { Bar, } +impl std::fmt::Debug for MockProgramCollect { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Self::Foo => write!(f, "Foo"), + Self::Bar => write!(f, "Bar"), + } + } +} + impl std::fmt::Display for MockProgramCollect { fn fmt(&self, _f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { todo!() -- cgit