aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-14 03:34:04 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-14 03:34:04 +0800
commit91ab6161a39122143f172828b4a8699c393e7a8a (patch)
treee411e2c821719921a311c0a58d65f858383c99d1 /mingling_core/src
parentb138dff3517e8cb793d431af6ad4a577491e21b0 (diff)
chore: implement Debug for MockProgramCollect
Diffstat (limited to 'mingling_core/src')
-rw-r--r--mingling_core/src/program/collection/mock.rs9
1 files changed, 9 insertions, 0 deletions
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!()